:root {
  --cream: #f6efe3;
  --cream-2: #fffaf2;
  --paper: #fbf6ed;
  --espresso: #241710;
  --brown: #4f3123;
  --terracotta: #ad5d36;
  --terracotta-dark: #8e4728;
  --olive: #596a3b;
  --olive-dark: #3e4d28;
  --sage: #cfd6ad;
  --sand: #e9caa9;
  --peach: #e4b995;
  --muted: #74675d;
  --line: rgba(36, 23, 16, 0.13);
  --shadow: 0 22px 65px rgba(71, 45, 30, 0.10);
  --shadow-sm: 0 12px 32px rgba(71, 45, 30, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--espresso);
  background:
    radial-gradient(circle at 92% 7%, rgba(207,214,173,.32), transparent 24rem),
    radial-gradient(circle at 10% 88%, rgba(233,202,169,.26), transparent 24rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
::selection { background: var(--sage); color: var(--espresso); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section.compact { padding: 82px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--terracotta-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: var(--terracotta); }

h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(3.4rem, 7vw, 6.9rem); line-height: .94; letter-spacing: -.065em; margin-bottom: 26px; }
h2 { font-size: clamp(2.25rem, 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.05em; margin-bottom: 18px; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }

/* NAV */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,239,227,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  min-height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { width: 13px; height: 13px; border-radius: 4px 8px 4px 8px; background: var(--terracotta); transform: rotate(8deg); box-shadow: 9px 7px 0 var(--olive); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) { color: var(--muted); font-size: .92rem; font-weight: 650; transition: .2s; }
.nav-links > a:not(.btn):hover { color: var(--espresso); }
.menu-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; background: var(--espresso); margin: 5px auto; transition: .2s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 19px; border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 780; font-size: .9rem;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff8ef; background: var(--espresso); box-shadow: 0 10px 30px rgba(36,23,16,.16); }
.btn-primary:hover { background: var(--brown); }
.btn-secondary { background: rgba(255,255,255,.45); border-color: var(--line); }
.btn-secondary:hover { background: #fff9ef; }
.btn-text { padding-inline: 0; border-radius: 0; color: var(--terracotta-dark); }
.btn-text:hover { transform: translateX(3px); }

/* HERO */
.hero { min-height: calc(100vh - 78px); display: grid; align-items: center; padding: 70px 0 94px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); gap: 72px; align-items: center; }
.hero-copy .lead { max-width: 670px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 28px; color: var(--muted); font-size: .86rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #6e873e; box-shadow: 0 0 0 5px rgba(110,135,62,.13); }
.hero-visual { position: relative; max-width: 425px; justify-self: end; }
.photo-shell {
  position: relative; aspect-ratio: .79;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(145deg,var(--espresso),var(--terracotta));
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}
.photo-shell img { width: 100%; height: 100%; object-fit: cover; }
.photo-shell::after { content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,.28); border-radius:inherit; pointer-events:none; }
.floating-tag {
  position: absolute; z-index: 2;
  background: rgba(255,250,242,.93); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  padding: 12px 15px;
  font-size: .82rem; font-weight: 760;
}
.floating-tag.one { left: -42px; top: 12%; transform: rotate(-3deg); }
.floating-tag.two { right: -28px; bottom: 10%; transform: rotate(3deg); }
.hero-orb { position:absolute; width: 130px; height:130px; border-radius: 50%; background: var(--sage); right:-28px; top:-28px; z-index:-1; opacity:.72; }

/* METRICS */
.metrics-wrap { position: relative; margin-top: -20px; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: rgba(255,250,242,.62); }
.metric { padding: 27px 28px; min-height: 132px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric:nth-child(2) { background: rgba(207,214,173,.47); }
.metric:nth-child(3) { background: rgba(233,202,169,.45); }
.metric:nth-child(4) { background: rgba(228,185,149,.45); }
.metric strong { display:block; font-size: clamp(2rem,4vw,3.4rem); letter-spacing:-.06em; line-height: 1; color: var(--olive-dark); margin-bottom: 8px; }
.metric span { color: var(--muted); font-size: .85rem; }

/* INTRO + SERVICES */
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 46px; }
.section-head > * { margin-bottom: 0; }
.section-head .lead { max-width: 520px; }
.service-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { border: 1px solid var(--line); background: rgba(255,250,242,.62); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.service-card { min-height: 300px; padding: 28px; display:flex; flex-direction:column; transition:transform .24s ease, box-shadow .24s ease; }
.service-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.service-card:nth-child(2) { background: rgba(207,214,173,.54); }
.service-card:nth-child(3) { background: rgba(233,202,169,.58); }
.service-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.card-num { color: var(--olive); font-size:.78rem; font-weight:850; letter-spacing:.08em; }
.service-icon { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; color:var(--olive-dark); background:rgba(255,250,242,.58); border:1px solid rgba(36,23,16,.08); }
.service-icon svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.service-copy { margin-top:42px; }
.service-copy h3 { margin-bottom:14px; }
.service-card p { color: var(--muted); margin-bottom: 0; }

/* WORK */
.work-grid { display:grid; gap: 24px; }
.work-card {
  display:grid; grid-template-columns: 1fr .9fr; min-height: 470px;
  overflow:hidden; transition: transform .28s ease, box-shadow .28s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-copy { padding: 46px; display:flex; flex-direction:column; }
.work-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 24px; }
.chip { display:inline-flex; padding:8px 11px; border:1px solid var(--line); border-radius:999px; font-size:.74rem; font-weight:750; color:var(--muted); background:rgba(255,255,255,.32); }
.work-copy h3 { font-size: clamp(2rem,4vw,3.5rem); letter-spacing:-.05em; margin-bottom:15px; }
.work-copy p { color:var(--muted); max-width:580px; }
.work-copy .btn-text { margin-top:auto; align-self:flex-start; }
.work-visual { position:relative; min-height: 360px; overflow:hidden; }
.sku-visual { background: linear-gradient(150deg, #f0dfc8, #c8d09e); padding: 42px; display:flex; align-items:center; justify-content:center; }
.mock-catalog { width:min(100%,400px); background:#fff9ef; border-radius:22px; padding:17px; box-shadow:0 30px 60px rgba(73,57,38,.16); transform:rotate(2deg); border:1px solid rgba(36,23,16,.08); }
.mock-bar { height:12px; width:48%; background:#e5d8c6; border-radius:999px; margin-bottom:16px; }
.mock-row { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.mock-item { background:#f3eadc; border-radius:14px; padding:12px; min-height:115px; }
.mock-item:nth-child(2){background:#d7dfbd}.mock-item:nth-child(3){background:#edc9ab}.mock-item:nth-child(4){background:#e7d6c0}
.mock-thumb { width:100%; height:48px; border-radius:9px; background:rgba(89,106,59,.15); margin-bottom:9px; }
.mock-line { height:7px; background:rgba(36,23,16,.15); border-radius:999px; margin:6px 0; }
.mock-line.short { width:58%; }
.app-visual { background:linear-gradient(150deg,#3d482a,#83915d); display:flex; align-items:center; justify-content:center; padding:42px; }
.app-window { width:min(100%,440px); background:#f9f6ee; border-radius:24px; overflow:hidden; box-shadow:0 35px 80px rgba(25,30,15,.28); transform:rotate(-1.4deg); }
.app-top { height:44px; background:#2c351d; display:flex; gap:6px; align-items:center; padding:0 15px; }
.app-top i { width:8px;height:8px;border-radius:50%;background:#d6b48c; }
.app-body { display:grid; grid-template-columns:86px 1fr; min-height:265px; }
.app-side { background:#e9eadb; padding:14px 10px; }
.app-navline { height:8px;border-radius:99px;background:#b9c198;margin:10px 0; }
.app-content { padding:22px; }
.app-title { width:55%;height:14px;border-radius:99px;background:#4e5b34;margin-bottom:20px; }
.app-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:11px; }
.app-block { min-height:72px;border-radius:12px;background:#eee3d3; }
.app-block:nth-child(2){background:#dce2c6}.app-block:nth-child(3){background:#e9c8ad}.app-block:nth-child(4){background:#dfe5d1}

/* ABOUT / TIMELINE */
.about-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap:72px; align-items:start; }
.about-sticky { position:sticky; top:110px; }
.timeline { border-left:1px solid rgba(89,106,59,.38); margin-left:9px; }
.timeline-item { position:relative; padding:0 0 50px 36px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before { content:""; position:absolute; left:-6px; top:4px; width:11px; height:11px; border-radius:50%; background:var(--terracotta); box-shadow:0 0 0 5px var(--cream); }
.timeline-year { font-size:.78rem; font-weight:850; color:var(--olive); margin-bottom:9px; }
.timeline-item h3 { margin-bottom:8px; }
.timeline-item p { color:var(--muted); margin-bottom:0; }
.skills { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.skills .chip { background:rgba(255,250,242,.65); }

/* CTA */
.cta-shell { border-radius:36px; overflow:hidden; display:grid; grid-template-columns:1.15fr .85fr; min-height:430px; box-shadow:var(--shadow); }
.cta-copy { padding:54px; background:var(--cream-2); }
.cta-panel { background:linear-gradient(145deg,var(--espresso),var(--olive)); color:#fff8ef; padding:54px; display:flex; flex-direction:column; justify-content:space-between; }
.contact-list { display:grid; gap:22px; }
.contact-item small { display:block; color:rgba(255,248,239,.62); margin-bottom:4px; }
.contact-item a { font-weight:760; text-decoration:underline; text-decoration-color:rgba(255,255,255,.35); text-underline-offset:4px; overflow-wrap:anywhere; }
.availability { display:flex; gap:8px; flex-wrap:wrap; margin-top:30px; }
.availability span { padding:9px 13px; border-radius:999px; font-size:.72rem; font-weight:800; color:#fff; }
.availability span:nth-child(1){background:var(--terracotta)}.availability span:nth-child(2){background:var(--olive)}.availability span:nth-child(3){background:#bf8b53}

footer { padding:28px 0 40px; color:var(--muted); font-size:.82rem; }
.footer-row { display:flex; justify-content:space-between; gap:20px; align-items:center; }

/* CASE STUDY */
.case-hero { padding:92px 0 58px; }
.back-link { display:inline-flex; gap:8px; align-items:center; color:var(--muted); font-size:.86rem; font-weight:720; margin-bottom:40px; }
.back-link:hover { color:var(--espresso); }
.case-title { max-width:1000px; }
.case-title h1 { font-size:clamp(3.3rem,7vw,7rem); }
.case-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.case-band { display:grid; grid-template-columns:repeat(4,1fr); margin-top:46px; }
.case-band .metric { border:1px solid var(--line); border-right:0; }
.case-band .metric:first-child{border-radius:22px 0 0 22px}.case-band .metric:last-child{border-right:1px solid var(--line);border-radius:0 22px 22px 0}
.prose-grid { display:grid; grid-template-columns:.65fr 1.35fr; gap:70px; }
.prose-grid h2 { font-size:clamp(2rem,3.4vw,3.4rem); }
.prose { font-size:1.07rem; color:var(--muted); }
.prose p + p { margin-top:1.3em; }
.process { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; align-items:center; }
.process-step { min-height:116px; display:flex; align-items:center; justify-content:center; text-align:center; border:1px solid var(--line); border-radius:18px; padding:13px; background:rgba(255,250,242,.72); font-weight:760; font-size:.82rem; }
.process-arrow { display:none; }
.decision-layout { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:34px; }
.panel { padding:30px; border-radius:var(--radius-md); border:1px solid var(--line); background:rgba(255,250,242,.67); }
.panel.sage { background:rgba(207,214,173,.55); }
.hero-side { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.mini-role { padding:20px; border-radius:18px; background:#fffaf1; border:1px solid var(--line); }
.mini-role span { display:inline-flex; padding:6px 9px; border-radius:999px; background:#eee2cf; color:var(--olive-dark); font-size:.66rem; font-weight:850; margin-bottom:13px; }
.mini-role p { color:var(--muted); margin:0; font-size:.9rem; }
.matrix { display:grid; gap:2px; }
.matrix-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:14px 0; border-bottom:1px solid rgba(36,23,16,.08); }
.matrix-row:last-child { border:0; }
.matrix-row span:first-child { color:var(--muted); }
.matrix-row strong { font-size:.9rem; }
.before-after { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.flow-card { padding:32px; border-radius:24px; border:1px solid var(--line); }
.flow-card.before { background:rgba(228,185,149,.53); }.flow-card.after{background:rgba(207,214,173,.62)}
.flow-stack { display:grid; gap:12px; margin-top:22px; }
.flow-stack span { display:block; text-align:center; padding:13px; background:rgba(255,255,255,.42); border-radius:12px; font-weight:760; }
.flow-stack i { text-align:center; color:var(--olive); font-style:normal; }
.solution-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }
.solution-card { min-height:250px; padding:25px; border-radius:21px; border:1px solid var(--line); background:rgba(255,250,242,.7); }
.solution-card:nth-child(2),.solution-card:nth-child(5){background:rgba(233,202,169,.43)}
.solution-card:nth-child(3){background:rgba(207,214,173,.58)}
.solution-card p { color:var(--muted); font-size:.91rem; margin-bottom:0; }
.stack-row { display:flex; flex-wrap:wrap; gap:8px; }

/* Mobile */
@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .menu-toggle { display:block; }
  .nav-links {
    position:absolute; top:70px; left:20px; right:20px;
    padding:17px; border:1px solid var(--line); border-radius:20px;
    background:rgba(255,250,242,.97); box-shadow:var(--shadow-sm);
    flex-direction:column; align-items:stretch; gap:6px;
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:.2s ease;
  }
  .nav-links.open { transform:none; opacity:1; pointer-events:auto; }
  .nav-links > a { padding:11px 9px; }
  .nav-links .btn { margin-top:4px; }
  .hero { min-height:auto; padding-top:44px; }
  .hero-grid { grid-template-columns:1fr; gap:48px; }
  .hero-visual { justify-self:center; width:min(82vw,390px); }
  .floating-tag.one { left:-16px; }.floating-tag.two{right:-14px}
  .metrics { grid-template-columns:repeat(2,1fr); }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .section-head { align-items:flex-start; flex-direction:column; }
  .service-grid, .solution-grid { grid-template-columns:1fr; }
  .service-card { min-height:auto; }
  .service-copy { margin-top:32px; }
  .work-card { grid-template-columns:1fr; }
  .work-copy { padding:32px; }
  .work-visual { min-height:320px; }
  .about-grid,.prose-grid { grid-template-columns:1fr; gap:42px; }
  .about-sticky { position:static; }
  .cta-shell { grid-template-columns:1fr; }
  .cta-copy,.cta-panel{padding:34px}
  .case-band { grid-template-columns:repeat(2,1fr); gap:10px; }
  .case-band .metric { border:1px solid var(--line)!important; border-radius:18px!important; }
  .process { grid-template-columns:repeat(2,1fr); }
  .process-step:last-child { grid-column:1/-1; }
  .decision-layout,.before-after { grid-template-columns:1fr; }
  .footer-row { flex-direction:column; align-items:flex-start; }
}

@media (max-width: 560px) {
  .container { width:min(calc(100% - 28px),var(--max)); }
  .nav { min-height:68px; }
  h1 { font-size:clamp(3rem,15vw,4.7rem); }
  h2 { font-size:clamp(2.15rem,11vw,3.4rem); }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-actions .btn { width:100%; }
  .hero-visual { width:min(86vw,340px); }
  .floating-tag { font-size:.72rem; padding:10px 11px; }
  .metrics { grid-template-columns:1fr 1fr; }
  .metric { padding:20px; min-height:115px; }
  .metric strong { font-size:2.15rem; }
  .work-copy { padding:26px; }
  .sku-visual,.app-visual { padding:26px; }
  .hero-side { grid-template-columns:1fr; }
  .case-band { grid-template-columns:1fr 1fr; }
  .process { grid-template-columns:1fr 1fr; }
  .solution-grid { grid-template-columns:1fr; }
  .cta-copy,.cta-panel{padding:28px 24px}
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

/* Footer document links */
.footer-links { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.footer-links a { color:inherit; text-decoration:none; }
.footer-links a:hover { color:var(--terra); }
@media (max-width: 700px) {
  .footer-links { gap:12px; }
}

.project-screenshot {
  width: 86%;
  max-width: 560px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(43, 28, 20, 0.18),
    0 2px 8px rgba(43, 28, 20, 0.08);
  transform: rotate(-1.5deg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-screenshot img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: top;
}

.browser-top {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: #f6f1e9;
}

.browser-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(43, 28, 20, 0.22);
}

.work-card:hover .project-screenshot {
  transform: rotate(0deg) translateY(-5px);
}