/* Toffee Apple Web: site styles. No framework, no build step. */
:root {
  --ink: #1d1712;
  --ink-2: #463b33;
  --muted: #6b5f56;
  --cream: #fff9f2;
  --sand: #f6ece0;
  --line: #eadccc;
  --white: #fff;
  --toffee: #c9691f;
  --toffee-strong: #9a4513;
  --toffee-soft: #fde9d5;
  --apple: #c8332b;
  --leaf: #2f7a4b;
  --leaf-soft: #e3f2e8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 10px 30px -12px rgba(60, 35, 15, .22);
  --shadow-lg: 0 30px 60px -25px rgba(60, 35, 15, .45);
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); background: var(--cream); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--toffee-strong); text-underline-offset: 3px; }
a:hover { color: var(--apple); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--toffee); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.2; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--toffee-strong); color: #fff; box-shadow: 0 8px 20px -10px rgba(154, 69, 19, .8); }
.btn-primary:hover { background: #7f380f; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--toffee-strong); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 242, .9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--toffee-soft); color: var(--toffee-strong); }
.nav-links .btn { margin-left: .5rem; padding: .6rem 1.1rem; }
.nav-links a.btn, .nav-links a.btn:hover, .nav-links a.btn[aria-current="page"] { color: #fff; background: var(--toffee-strong); }
.nav-links a.btn { display: inline-flex; }
.nav-links a.btn:hover { background: #7f380f; }
.menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: .8rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-links .btn { margin: .5rem 0 0; }
}

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #e9dfd6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--toffee-strong); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--apple); }
.section-dark .eyebrow { color: #f6b77f; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(201, 105, 31, .18), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--apple); }
.hero .lead { max-width: 560px; margin-bottom: 1.8rem; }
.ticks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: .45rem; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.hero-art { position: relative; min-height: 420px; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line); }
.shot .bar { height: 26px; background: #f1e7dc; display: flex; align-items: center; gap: 6px; padding-left: 12px; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #e0cdbb; }
.hero-art .shot-a { width: 88%; position: relative; z-index: 1; transform: rotate(-1.5deg); }
.hero-art .shot-b { position: absolute; width: 62%; right: 0; bottom: -20px; z-index: 2; transform: rotate(2deg); }
.hero-art .phone { position: absolute; left: -4%; bottom: -40px; width: 30%; z-index: 3; border-radius: 26px; border: 8px solid #1d1712; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { min-height: 0; margin: 1rem 0 3rem; } }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: #fff; padding: 1.4rem 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip li { display: flex; gap: .8rem; align-items: center; font-weight: 600; color: var(--ink); font-size: .97rem; line-height: 1.35; }
.strip li span { color: var(--muted); font-weight: 500; display: block; font-size: .88rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--toffee-soft); color: var(--toffee-strong); display: grid; place-items: center; flex: none; }
.icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .strip ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip ul { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.card .more::after { content: "→"; transition: transform .15s; }
.card .more:hover::after { transform: translateX(3px); }

.work-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.work-card .thumb { aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; border-bottom: 1px solid var(--line); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.work-card:hover .thumb img { transform: scale(1.03); }
.work-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.work-card h3 { margin: 0; font-size: 1.2rem; }
.work-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.work-card .cta { margin-top: auto; padding-top: .7rem; font-weight: 700; color: var(--toffee-strong); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .03em; padding: .25rem .6rem; border-radius: 999px; background: var(--toffee-soft); color: var(--toffee-strong); }
.tag.green { background: var(--leaf-soft); color: var(--leaf); }
.tag.grey { background: #efe8e1; color: var(--ink-2); }
.tag.red { background: #fde4e2; color: #9f231c; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: inherit; font-weight: 700; font-size: .95rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button:hover { border-color: var(--ink); }
[hidden] { display: none !important; }

/* Earlier work */
.mini-card { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; }
.mini-card img { border-radius: 8px; aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.mini-card h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.mini-card p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 480px) { .mini-card { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--apple); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.section-dark .steps p { color: #cfc3b8; }

/* Split / feature lists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.check-list strong { color: var(--ink); }

/* Service blocks */
.service { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service .related { margin-top: 1.2rem; font-size: .95rem; }
.service .related a { font-weight: 700; }
.app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.app-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; font-size: .95rem; }
.app-list strong { display: block; color: var(--ink); }
@media (max-width: 560px) { .app-list { grid-template-columns: 1fr; } }

/* Project page */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #bba999; }
.crumbs a { color: var(--muted); }
.project-hero { padding-bottom: 2rem; }
.project-hero .tags { margin-bottom: 1rem; }
.project-shot { margin-top: 2.5rem; }
.project-shot .shot { max-width: 1060px; margin-inline: auto; transform: none; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 1rem; }
.feature .icon { margin-top: .15rem; }
.feature h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.feature p { margin: 0; font-size: .98rem; }
.tech { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tech li { background: #fff; border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.note { background: var(--toffee-soft); border-left: 4px solid var(--toffee); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a { display: block; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.pager a:hover { border-color: var(--toffee); }
.pager .next { text-align: right; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #2a1d14, #4a2a16); color: #f1e4d8; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 120, 40, .45), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #e0cfc0; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--toffee-strong); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; }

/* Contact */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 700; color: var(--ink); font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: .8rem 1rem; border: 1.5px solid #dccbb9; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--toffee); box-shadow: 0 0 0 4px rgba(201, 105, 31, .18); }
.form .hp { position: absolute; left: -5000px; }
.form-status { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; }
.form-status.ok { background: var(--leaf-soft); color: var(--leaf); }
.form-status.err { background: #fde4e2; color: #9f231c; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #cdbfb2; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #f1e4d8; text-decoration: none; }
.site-footer a:hover { color: #f6b77f; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h2 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand small { color: #b3a395; }
.foot-base { border-top: 1px solid #3a2f27; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
