:root {
  --ivory: #F8F5EE;
  --ivory-2: #F2EDE2;
  --white: #FFFFFF;
  --rosewood: #B4685A;
  --rosewood-deep: #9A4A3C;
  --rosewood-dark: #7E332A;
  --blush: #F1E4DC;
  --ink: #20261B;
  --ink-2: #5C6153;
  --border: rgba(32,38,27,.15);
  --radius-tag: 2px 22px 2px 2px;
  --content: 1200px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: "Figtree", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--blush); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,245,238,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--content); margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: baseline; color: var(--ink); font: 400 26px/1 "Instrument Serif", serif; letter-spacing: .01em; text-decoration: none; }
.wordmark-rest { animation: wordmark-clarify 2.2s cubic-bezier(.25,.5,.2,1) 4.4s both; }
.wordmark-second-a { margin-left: .24em; }
.stitched-a { position: relative; display: inline-block; width: .42em; height: .96em; color: currentColor; line-height: 1; vertical-align: baseline; }
.stitched-a svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stitched-a text { font-family: "Instrument Serif", serif; font-style: normal; }
.stitched-a .stitch-mask-one { animation: aalt-draw-one 9s linear infinite; }
.stitched-a .stitch-pass { animation: aalt-stitch-out 9s linear infinite; }
.stitched-a .stitch-mask-two { animation: aalt-draw-two 9s linear infinite; }
.stitched-a .outline-pass { animation: aalt-outline-out 9s linear infinite; }
.stitched-a .fill-pass { animation: aalt-fill 9s linear infinite; }
.hero-line-ink .stitched-a { color: var(--ink); }
.hero-line-rose .stitched-a { color: var(--rosewood); }
.stitched-a-wordmark { color: currentColor; }
@keyframes aalt-draw-one { 0% { stroke-dashoffset: 400px; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes aalt-draw-two { 0%, 14% { stroke-dashoffset: 400px; } 28%, 100% { stroke-dashoffset: 0; } }
@keyframes aalt-stitch-out { 0%, 26% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes aalt-outline-out { 0%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes aalt-fill { 0%, 30% { opacity: 0; } 38%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wordmark-clarify { 0% { opacity: .45; filter: blur(1.2px); } 100% { opacity: 1; filter: blur(0); } }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 0; border-radius: 999px; background: var(--rosewood); color: var(--white); font: 600 15px/1 "Figtree", sans-serif; text-decoration: none; cursor: pointer; transition: background 180ms var(--ease), transform 180ms var(--ease); }
.button:hover { background: var(--rosewood-deep); text-decoration: none; }
.button:active { background: var(--rosewood-dark); transform: translateY(1px); }
.button-small { min-height: 40px; padding: 9px 19px; font-size: 14px; }

.section { background: var(--ivory); }
.section-alt { background: var(--ivory-2); }
.section-inner { max-width: var(--content); margin: 0 auto; padding: 110px 32px; }
.eyebrow { margin: 0 0 20px; color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.seam { width: 52px; margin: 14px 0 22px; border-top: 1px dashed rgba(180,104,90,.55); }
h2 { margin: 0 0 36px; font: 400 44px/1.1 "Instrument Serif", serif; }

.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.hero-title { margin: 0; font: 400 76px/1.08 "Instrument Serif", serif; letter-spacing: -.01em; }
.hero-title .hero-line { color: inherit; }
.hero-title .hero-line-rose { color: var(--rosewood); }
.hero-sub { max-width: 520px; margin: 28px 0 0; color: var(--ink-2); font-size: 21px; line-height: 1.55; }
.portrait-wrap { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-tag); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.nowrap { white-space: nowrap; }
.reveal { animation: hero-in 1.4s var(--ease) both; }
.reveal-one { animation-delay: .1s; }
.reveal-two { animation-delay: .25s; }
.reveal-three { animation-delay: .45s; }
@keyframes hero-in { from { opacity: .25; filter: blur(2px); transform: translateY(5px); } to { opacity: 1; filter: blur(0); transform: none; } }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-tag); color: var(--ink); text-decoration: none; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.case-card:hover { border-color: rgba(180,104,90,.5); transform: translateY(-2px); }
.case-top { min-height: 40px; display: flex; align-items: center; gap: 16px; }
.case-logo { max-width: 145px; width: auto; object-fit: contain; object-position: left center; flex-shrink: 0; mix-blend-mode: multiply; opacity: .85; }
.yana-logo { height: 26px; filter: grayscale(1); }
.truneura-logo { height: 32px; }
.done-logo { height: 30px; filter: brightness(0) opacity(.85); }
.case-role { margin-left: auto; color: var(--ink-2); text-align: right; font-size: 11.5px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.case-role span { display: block; color: var(--rosewood-deep); }
.case-card p { margin: 0; flex: 1; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.case-bottom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-2); font-size: 11px; line-height: 1.2; }
.visit { margin-left: auto; color: var(--ink-2); font-size: 14px; transition: color 180ms; }
.case-card:hover .visit { color: var(--rosewood-deep); }

.goldie-grid { display: grid; grid-template-columns: 5fr 7fr; margin-top: 24px; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-tag); }
.goldie-tile { position: relative; display: flex; padding: 44px 40px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--blush); color: var(--ink); text-decoration: none; }
.goldie-frame { position: absolute; inset: 10px; border: 1px dashed rgba(180,104,90,.55); border-radius: 2px 16px 2px 2px; pointer-events: none; }
.goldie-tile img { height: 56px; width: auto; filter: grayscale(1); mix-blend-mode: multiply; opacity: .8; }
.goldie-tagline { color: var(--ink-2); font-size: 12px; font-style: normal; font-weight: 600; line-height: 1.7; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.goldie-tagline i { font-style: normal; }
.goldie-copy { padding: 40px 48px 36px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.goldie-copy h2 { margin: 0; font-size: 34px; line-height: 1.15; }
.goldie-copy h2 a { color: var(--rosewood-deep); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.goldie-copy em, .contact-title em { color: var(--rosewood); }
.goldie-copy p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.contact-title { margin: 0; font-size: 52px; }
.contact-intro { margin: 24px 0 0; color: var(--ink-2); font-size: 18px; }
.email-link { color: var(--rosewood-deep); font: italic 400 19px/1.4 "Instrument Serif", serif; text-underline-offset: 4px; }
.contact-card { padding: 36px; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-tag); }
.contact-card label { margin-top: 8px; font-size: 13px; font-weight: 600; }
.label-optional { margin-left: 5px; color: var(--ink-2); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.contact-card input, .contact-card select, .contact-card textarea { width: 100%; min-height: 48px; padding: 11px 16px; border: 1px solid var(--border); background: var(--white); color: var(--ink); font: 400 16px/1.4 "Figtree", sans-serif; }
.contact-card input, .contact-card select { border-radius: 999px; }
.contact-card textarea { min-height: 128px; resize: vertical; border-radius: 2px 18px 2px 2px; }
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus { outline: 2px solid rgba(180,104,90,.35); outline-offset: 2px; border-color: var(--rosewood); }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.contact-card .text-preference { display: flex; align-items: center; gap: 10px; margin: 1px 4px 6px; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.contact-card .text-preference input { width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; flex: 0 0 18px; accent-color: var(--rosewood); }
.form-error { min-height: 18px; margin: 0 8px; color: var(--rosewood-dark); font-size: 12px; }
.submit-button { align-self: flex-start; margin-top: 12px; }
.form-note { margin: 2px 0 0; color: var(--ink-2); font-size: 12px; }

.site-footer { background: var(--rosewood-deep); color: var(--ivory); }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 72px 32px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.wordmark-inverse { color: var(--ivory); font-size: 32px; }
.footer-top nav { display: flex; gap: 32px; align-items: center; font-size: 15px; }
.footer-top nav a { color: var(--ivory); text-decoration: none; text-underline-offset: 4px; }
.footer-top nav a:hover { color: var(--blush); text-decoration: underline; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(248,245,238,.25); color: rgba(248,245,238,.55); font-size: 13px; }

@media (max-width: 900px) and (min-width: 721px) {
  .hero-title { font-size: 58px; }
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { padding: 14px 20px; }
  .section-inner { padding: 64px 20px; }
  .hero-grid, .goldie-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cases-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
  .hero-sub { margin-top: 20px; font-size: 17px; }
  h2 { margin-bottom: 28px; font-size: 30px; }
  .goldie-grid { gap: 0; }
  .goldie-copy { padding: 28px 24px 32px; }
  .goldie-copy h2 { font-size: 27px; }
  .goldie-tagline span, .goldie-tagline i { display: block; }
  .goldie-tagline i { height: 0; overflow: hidden; }
  .contact-title { font-size: 34px; }
  .contact-card { padding: 24px 20px; }
  .footer-inner { padding: 56px 20px 32px; }
  .footer-bottom { gap: 16px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
