/* ============================================================
   Femmy Priscillya — portfolio
   One stylesheet for every page.
   Colour and type tokens live in :root — change them once here.
   ============================================================ */

:root {
  --paper: #f7f4ee; /* warm off-white — the page */
  --ink: #262626; /* near-black — all readable text */
  --muted: #6e6a62; /* warm grey — captions & labels */
  --line: #e5e0d6; /* hairline dividers */
  --accent: #fd612d; /* orange — used sparingly */
  --blue: #afd9e7; /* rare, quiet wash */
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ---- shared small type ---- */
.eyebrow {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand img {
  height: 60px;
  width: auto;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}
nav a {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}
.lang {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.lang b {
  color: var(--ink);
}

/* ---- Work dropdown menu ---- */
.has-dropdown {
  position: relative;
}
.has-dropdown::after {
  /* invisible bridge so the menu doesn't vanish in the gap */
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}
.dropdown {
  display: block;
  list-style: none;
  gap: 0;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 235px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(38, 38, 38, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 30;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li {
  display: block;
}
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
}
.dropdown a::after {
  display: none;
} /* no underline animation inside the menu */
.dropdown a:hover {
  color: var(--accent);
  background: rgba(253, 97, 45, 0.07);
}

/* ---- buttons ---- */
.btn {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.ghost {
  background: none;
  color: var(--ink);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- hero (home) ---- */
.hero {
  padding: 104px 0 88px;
}
.hero .eyebrow {
  margin-bottom: 26px;
}
h1 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero p.lead {
  margin-top: 30px;
  max-width: 52ch;
  font-size: 18px;
  color: var(--ink);
}
.hero .meta {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 15px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-logo img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-left: auto; /* pushes the logo to the right edge */
}
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-logo img {
    max-width: 240px;
    margin: 0;
  } /* stacks below the text on phones */
}
.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---- disciplines ---- */
.disciplines {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.disc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.disc .n {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 44px;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 12px;
}
.disc h3 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 10px;
}
.disc p {
  font-size: 15px;
  color: var(--muted);
}

/* ---- selected work (home teasers) ---- */
.work {
  padding: 96px 0 40px;
}
.section-head {
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card .frame {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #efebe1;
  transition: 0.25s ease;
}
.card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}
.card:hover .frame {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.card:hover .frame img {
  transform: scale(1.03);
}
.card .kind {
  font-size: 13px;
  color: var(--accent);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 18px;
  display: block;
}
.card h3 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 4px 0 6px;
}
.card .go {
  font-size: 14px;
  color: var(--muted);
}
.card:hover .go {
  color: var(--accent);
}

/* ---- about (home + page) ---- */
.about {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.about h2 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}
.about p {
  font-size: 17px;
  margin-bottom: 18px;
  max-width: 56ch;
}

.textlink {
  color: var(--accent);
}
.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 24px;
}
/* ---- interior page header (work / about / contact) ---- */
.page-head {
  padding: 88px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow {
  margin-bottom: 18px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: none;
}
.page-head p {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 17px;
  color: var(--muted);
}
.back {
  display: inline-block;
  margin-bottom: 26px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.back:hover {
  color: var(--accent);
}

/* ---- portfolio gallery (square, Instagram-style grid) ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 48px 0 40px;
}
.gallery .tile {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #efebe1;
  cursor: zoom-in;
  margin: 0;
}
.gallery .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery .tile:hover img {
  transform: scale(1.04);
}
.gallery .tile figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(
    to top,
    rgba(38, 38, 38, 0.55),
    rgba(38, 38, 38, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery .tile:hover figcaption {
  opacity: 1;
}
.gallery .tile figcaption .t {
  color: var(--paper);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}

.gallery a.tile {
  display: block;
  text-decoration: none;
}
.gallery .tile .cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(
    to top,
    rgba(38, 38, 38, 0.6),
    rgba(38, 38, 38, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery .tile:hover .cap {
  opacity: 1;
}
.gallery .tile .cap .t {
  color: var(--paper);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}
.gallery .tile .cap .open {
  color: var(--paper);
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

/* subcategory blocks (graphic design) */
.subcat {
  margin-bottom: 56px;
}
.subcat .subhead {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 20px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.subcat .subhead .count {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-family: "Work Sans", sans-serif;
}

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(38, 38, 38, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 3px;
}
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: "Jost", sans-serif;
  font-size: 30px;
  color: var(--paper);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox .cap {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--paper);
  font-size: 14px;
  opacity: 0.8;
}

/* ---- contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 56px 0 40px;
  align-items: start;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-aside p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--muted);
}
.contact-aside a.big {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  color: var(--ink);
}
.contact-aside a.big:hover {
  color: var(--accent);
}

/* ---- footer ---- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 40px;
  margin-top: 56px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 16px;
}
footer .fcol .eyebrow {
  color: #9c988e;
  margin-bottom: 16px;
}
footer a {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--paper);
  opacity: 0.85;
}
footer a:hover {
  opacity: 1;
  color: var(--blue);
}
.foot-bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 13px;
  color: #9c988e;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .disc-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav ul {
    gap: 22px;
  }
  nav .hide-sm {
    display: none;
  }
  .hero {
    padding: 72px 0 64px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 22px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto;
  }
}
