/* ==========================================================================
   Angi Kim Creative
   Editorial, warm, photo-first. Everything keys off the tokens below.
   ========================================================================== */

:root {
  --bone: #f5f1ea;
  --paper: #fbf9f5;
  --sand: #ebe4d8;
  --ink: #1a1918;
  --charcoal: #3e3e40;        /* the logo's circle */
  --muted: #6b6760;
  --line: rgba(26, 25, 24, 0.14);
  --poppy: #d6412f;           /* red dress, red bag, poppies */
  --poppy-soft: #f2c9bd;

  --night: #121211;
  --night-2: #1c1b1a;
  --on-night: #f3efe8;
  --on-night-muted: #a9a49b;
  --night-line: rgba(243, 239, 232, 0.14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--poppy); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--poppy); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display, .display-2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.98;
}
.display { font-size: clamp(48px, 7.4vw, 112px); }
.display-2 { font-size: clamp(40px, 5.2vw, 76px); }
.display em, .display-2 em { font-style: italic; color: var(--poppy); }

.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 34em; }
.big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--bone); }
.btn-solid:hover { background: var(--poppy); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bone); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-text span { font-weight: 500; color: var(--muted); }

.nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav a:not(.nav-cta):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--bone); transition: background-color 0.3s; }
.nav-cta:hover { background: var(--poppy); }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-toggle .bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle .bar:nth-of-type(1) { top: 19px; }
.menu-toggle .bar:nth-of-type(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  background: var(--bone);
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column;
  min-height: calc(100dvh - var(--header-h));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { font-family: var(--serif); font-size: 44px; line-height: 1.3; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-meta { margin-top: auto; padding-top: 28px; color: var(--muted); font-size: 15px; line-height: 2; }
.mobile-meta a { text-decoration: none; }

/* ---------- Feather motif ---------- */
.feather { position: absolute; pointer-events: none; color: var(--ink); opacity: 0.05; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.feather-hero { width: min(70vw, 900px); right: -12%; top: 6%; transform: rotate(-8deg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy .display { margin-bottom: 28px; }
.hero-copy .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-img { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(26, 25, 24, 0.45); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-a { left: 0; top: 4%; width: 88%; aspect-ratio: 1036 / 593; z-index: 1; }
.hero-img-b { right: 0; top: 40%; width: 40%; aspect-ratio: 546 / 860; z-index: 3; border: 6px solid var(--bone); }
.hero-img-c { left: 8%; bottom: 0; width: 38%; aspect-ratio: 4 / 4.2; z-index: 2; }
.hero-img-c img { object-position: 50% 30%; }
.hero-tag {
  position: absolute; z-index: 4; left: 46%; top: -2%;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--poppy); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5;
  animation: spin-in 1.4s var(--ease) 0.5s both;
}
.hero-tag em { font-family: var(--serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 400; }
@keyframes spin-in { from { transform: scale(0.4) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--paper); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--poppy); }
.marquee i { width: 9px; height: 9px; border-radius: 50%; background: var(--charcoal); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.on-dark { background: var(--night); color: var(--on-night); }
.on-dark .eyebrow { color: var(--on-night-muted); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.section-intro { max-width: 30em; color: var(--muted); }

/* ---------- Work / gallery ---------- */
.work { padding: clamp(80px, 10vw, 140px) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 1px solid var(--night-line); background: transparent; color: var(--on-night-muted);
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.filters button:hover { color: var(--on-night); border-color: var(--on-night-muted); }
.filters button[aria-pressed="true"] { background: var(--on-night); border-color: var(--on-night); color: var(--night); }

/* Justified rows: tiles grow in proportion to their aspect ratio (--r). */
.gallery { --row: clamp(200px, 24vw, 330px); display: flex; flex-wrap: wrap; gap: 10px; }
.gallery::after { content: ""; flex-grow: 999; }
.tile {
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--row));
  aspect-ratio: var(--r);
  position: relative; overflow: hidden; border-radius: 2px; background: var(--night-2);
  cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity 0.6s; }
.tile:hover img { transform: scale(1.045); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 45%);
  opacity: 0; transition: opacity 0.5s;
}
.tile:hover::after { opacity: 1; }
.tile.is-hidden { display: none; }
.tile.is-entering { animation: tile-in 0.7s var(--ease) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.services { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.service-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px minmax(200px, 1fr) minmax(0, 1.3fr);
  gap: 24px; align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.service-num { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1; transition: color 0.3s; }
.service p { color: var(--muted); max-width: 32em; }
.service:hover { padding-left: 14px; }
.service:hover h3 { color: var(--poppy); font-style: italic; }
.service-float {
  position: fixed; left: 0; top: 0; z-index: 20; width: 260px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); pointer-events: none; opacity: 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  transform: translate(-50%, -50%) scale(0.85);
}
.service-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- About ---------- */
.about { padding: clamp(80px, 10vw, 140px) 0; background: var(--sand); overflow: hidden; }
.feather-about { width: min(60vw, 720px); left: -14%; bottom: -6%; transform: rotate(10deg) scaleX(-1); opacity: 0.06; }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-art { display: grid; place-items: center; }
.about-logo { width: min(100%, 380px); filter: drop-shadow(0 30px 40px rgba(26, 25, 24, 0.22)); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
.about-copy .display-2 { margin-bottom: 28px; }
.about-copy .big { margin-bottom: 22px; }
.about-copy > p:not(.big):not(.eyebrow) { color: var(--muted); max-width: 36em; }
.about-points { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.about-points strong { display: block; font-weight: 700; margin-bottom: 4px; }
.about-points span { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 8vw, 110px); }
.contact-title { max-width: 13em; margin-bottom: clamp(44px, 6vw, 80px); }
.contact-title em { color: var(--poppy-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: clamp(24px, 3vw, 36px); border: 1px solid var(--night-line); border-radius: var(--radius);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, color 0.4s;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--poppy);
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.contact-card:hover::before { transform: none; }
.contact-card:hover { border-color: var(--poppy); }
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-muted); transition: color 0.4s; }
.contact-card:hover .contact-label { color: rgba(255, 255, 255, 0.8); }
.contact-value { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.contact-arrow { position: absolute; right: clamp(24px, 3vw, 36px); top: clamp(22px, 3vw, 34px); font-size: 22px; transition: transform 0.5s var(--ease); }
.contact-card:hover .contact-arrow { transform: translateX(6px) rotate(-45deg); }
.copy-email {
  margin-top: 22px; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--on-night-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px;
}
.copy-email:hover { color: var(--on-night); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--night-line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 36px; padding-block: 28px; font-size: 14px; color: var(--on-night-muted); }
.footer-inner a { text-decoration: none; color: var(--on-night); }
.footer-inner a:hover { color: var(--poppy-soft); }
.to-top { margin-left: auto; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 10, 9, 0.96); color: var(--on-night);
}
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade 0.35s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 0 32px; max-height: 100dvh; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; object-fit: contain; border-radius: 2px; }
.lb-figure figcaption { font-size: 14px; color: var(--on-night-muted); text-align: center; max-width: 40em; padding-inline: 16px; }
.lb-nav, .lb-close {
  background: none; border: 1px solid var(--night-line); color: var(--on-night); cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 20px; justify-self: center;
  transition: background-color 0.3s, border-color 0.3s;
}
.lb-nav:hover, .lb-close:hover { background: var(--poppy); border-color: var(--poppy); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 26px; line-height: 1; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-img { opacity: 0; clip-path: inset(100% 0 0 0); animation: unveil 1.4s var(--ease) forwards; }
.js .hero-img-a { animation-delay: 0.15s; }
.js .hero-img-c { animation-delay: 0.35s; }
.js .hero-img-b { animation-delay: 0.55s; }
@keyframes unveil { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; width: 100%; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-logo { width: 220px; }
  .service { grid-template-columns: 56px 1fr; }
  .service p { grid-column: 2; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open { background: var(--bone); }
  .gallery { --row: 150px; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .hero-tag { width: 92px; height: 92px; font-size: 9px; left: auto; right: 4%; top: -6%; }
  .hero-tag em { font-size: 14px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-figure { padding: 64px 0 90px; }
  .lb-figure img { max-height: calc(100dvh - 200px); }
  .to-top { margin-left: 0; }
  .service-float { display: none; }
}
@media (hover: none) { .service-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
