/* Arc By Rehman: bone + ink + walnut. Cormorant Garamond + Manrope.
   Editorial, gallery-like: square edges, thin rules, lots of air. */
:root {
  --bone: #f3efe8;
  --paper: #faf8f4;
  --ink: #1d1b18;
  --ink-2: #3a3631;
  --walnut: #7a5a40;
  --walnut-2: #5f4532;
  --stone: #cfc6b8;
  --muted: #6d665d;
  --line: #e0d9cd;
  --white: #ffffff;
  --max: 1200px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em { font-style: italic; color: var(--walnut); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--walnut); margin-bottom: 1.1em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Buttons: squared, outlined, editorial */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--walnut-2); border-color: var(--walnut-2); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: transparent; color: var(--paper); }
.btn.ghost-light { background: transparent; color: var(--paper); border-color: rgba(250,248,244,.7); }
.btn.ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }
.arrow { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.arrow:hover { color: var(--walnut); }

/* Header */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(250,248,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 30px; height: 36px; flex: none; }
.brand b { font-family: var(--sans); font-weight: 800; letter-spacing: .32em; font-size: 1rem; }
.brand i { font-family: var(--serif); font-size: 1.15rem; color: var(--walnut); margin-left: 2px; }
.nav-toggle { width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
nav.main { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 16px 20px; flex-direction: column; }
nav.main.open { display: flex; }
nav.main > a { padding: 14px 2px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; border-bottom: 1px solid var(--line); }
nav.main > a[aria-current] { color: var(--walnut); font-style: italic; }
nav.main > a.btn { margin-top: 16px; font-family: var(--sans); font-size: .82rem; border-bottom: 1px solid var(--ink); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  nav.main { display: flex; position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; border: 0; background: none; }
  nav.main > a { border: 0; padding: 6px 0; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  nav.main > a[aria-current] { font-style: normal; box-shadow: inset 0 -1px 0 var(--walnut); }
  nav.main > a.btn { margin: 0 0 0 6px; padding: 11px 18px; }
}

/* Home hero: full-bleed photo, type sits on it */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; color: var(--paper); padding: 0 0 40px; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.15) 30%, rgba(20,18,15,.78) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .label { color: #e6d6c3; }
.hero h1 { color: var(--paper); max-width: 11em; }
.hero h1 em { color: #e6d6c3; }
.hero p { max-width: 32em; color: #ece6dd; font-size: 1.08rem; }
.hero .btn-row { margin-top: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(250,248,244,.3); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #ddd3c6; }

/* Statement */
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.2; max-width: 22em; margin: 0; }
.statement em { color: var(--walnut); }
.sig { margin-top: 22px; font-size: .85rem; color: var(--muted); letter-spacing: .08em; }

/* Feature projects: alternating editorial blocks */
.features { display: grid; gap: 40px; }
.feature { display: grid; gap: 16px; text-decoration: none; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.feature .frame { overflow: hidden; }
.feature:hover img { transform: scale(1.03); }
.feature .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.feature h3 { margin: 0; }
.feature .tagline { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--walnut); white-space: nowrap; }
@media (min-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 64px; }
  .features > .feature:nth-child(even) { margin-top: 90px; }
  .features > .feature:nth-child(4n+1) img { aspect-ratio: 4 / 5; }
}

/* Two-column split */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.rev > :first-child { order: 2; } }
.split > img, .tall { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.wide-img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

/* Dark band */
.ink { background: var(--ink); color: #d8d0c4; }
.ink h2, .ink h3 { color: var(--paper); }
.ink .label { color: #c9a98a; }
.ink h2 em { color: #c9a98a; }
.ink .lead { color: #b9b0a3; }

/* Services list: numbered, ruled */
.svc { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.svc > li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc > li::before { content: counter(s, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 9; font: italic 500 1.5rem var(--serif); color: var(--walnut); }
.svc > li > * { grid-column: 2; }
.svc h3 { margin: 0 0 4px; }
.svc p { margin: 0; color: var(--muted); }
.svc ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.svc ul li { padding: 2px 0; }
.svc ul li::marker { color: var(--walnut); }
.ink .svc, .ink .svc > li { border-color: rgba(255,255,255,.14); }
.ink .svc p, .ink .svc ul { color: #b9b0a3; }
@media (min-width: 900px) { .svc.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.steps > li { counter-increment: p; padding: 22px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: "Step " counter(p); display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--walnut); margin-bottom: 6px; font-weight: 700; }
.steps b { display: block; font: 500 1.45rem/1.15 var(--serif); margin-bottom: 4px; }
.steps span { color: var(--muted); }
.ink .steps > li { border-color: rgba(255,255,255,.14); }
.ink .steps span { color: #b9b0a3; }
.ink .steps > li::before { color: #c9a98a; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* Render strip (3D) */
.renders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.renders img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.renders .big { grid-column: span 2; }
.renders .big img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .renders { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; } .renders .big { grid-column: 1; grid-row: span 2; } .renders .big img { aspect-ratio: auto; height: 100%; } }

/* Projects: filter chips + grid */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin-bottom: 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 11px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button .n { color: var(--muted); margin-left: 6px; }
.filters button[aria-pressed="true"] .n { color: var(--stone); }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 26px 18px; } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pgrid figure { margin: 0; }
.pgrid button { all: unset; cursor: zoom-in; display: block; width: 100%; overflow: hidden; }
.pgrid button:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; }
.pgrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.pgrid button:hover img { transform: scale(1.03); }
.pgrid figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; align-items: baseline; }
.pgrid figcaption b { font: 500 1.25rem var(--serif); }
.pgrid figcaption span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--walnut); white-space: nowrap; }
.pgrid .is-render span::before { content: "3D · "; }
.count-note { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; }
dialog.lightbox::backdrop { background: rgba(20,18,15,.92); }
dialog.lightbox img { max-height: 78vh; width: auto; }
dialog.lightbox p { color: var(--paper); text-align: center; margin: 12px 0 0; font-family: var(--serif); font-size: 1.25rem; }
dialog.lightbox .x { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
dialog.lightbox .nav { position: fixed; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 1px solid rgba(255,255,255,.5); background: rgba(20,18,15,.4); color: #fff; font-size: 1.3rem; cursor: pointer; }
dialog.lightbox .prev { left: 10px; }
dialog.lightbox .next { right: 10px; }

/* Page hero (inner pages) */
.page-hero { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); margin-bottom: .2em; }
.page-hero p { color: var(--muted); max-width: 34em; margin: 0; font-size: 1.08rem; }
.crumb { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; }

/* Founder */
.founder-card { border: 1px solid var(--line); padding: 26px; background: var(--white); }
.mono { width: 84px; height: 84px; border: 1px solid var(--walnut); color: var(--walnut); display: grid; place-items: center; font: italic 500 2rem var(--serif); margin-bottom: 18px; }

/* Facts row */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts > div { padding: 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { display: block; font: 500 1.6rem/1.1 var(--serif); }
.facts span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Forms */
.enquiry-layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .enquiry-layout { grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; } }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 24px 18px; }
@media (min-width: 560px) { .form-card { padding: 34px; } }
form.enquiry { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label, fieldset legend { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field small, .form-note { color: var(--muted); font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--stone); border-radius: 0; padding: 13px 14px; min-height: 50px; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5a40' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background-color: var(--white); }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span { display: inline-block; padding: 10px 14px; border: 1px solid var(--stone); font-size: .92rem; font-weight: 500; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.two { display: grid; gap: 20px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
form.enquiry .btn { width: 100%; padding: 17px; }
.err { color: #a3361f; font-size: .85rem; }
.side-block { border-top: 1px solid var(--line); padding: 22px 0; }
.side-block:first-child { border-top: 0; padding-top: 0; }
.side-block h3 { font-size: 1.4rem; }

/* Map */
.map { border: 1px solid var(--line); background: var(--bone); }
.map iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(.6) contrast(1.05); }

/* CTA band */
.cta { position: relative; color: var(--paper); padding: 90px 0; overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,15,.66); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: var(--paper); max-width: 14em; }
.cta h2 em { color: #e6d6c3; }
.cta p { color: #e3dbcf; max-width: 32em; }

/* Footer */
footer.site { background: var(--ink); color: #a99f92; padding: 56px 0 110px; font-size: .95rem; }
footer.site .big { font: 500 clamp(1.9rem, 7vw, 3rem)/1.1 var(--serif); color: var(--paper); margin-bottom: 30px; }
footer.site .big a { text-decoration: none; border-bottom: 1px solid #c9a98a; }
footer.site h3 { color: var(--paper); font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
footer.site a { color: var(--paper); }
footer.site .grid { display: grid; gap: 28px; }
@media (min-width: 760px) { footer.site .grid { grid-template-columns: repeat(3, 1fr); } }
footer.site .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: .82rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Placeholder review mode: add ?ph to the URL */
.ph-on [data-ph] { outline: 2px dashed #e0399b; outline-offset: 3px; }

/* Founder photo (studio page) + signature with headshot (home) */
.founder-photo { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 22px; }
.sig a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.sig img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.sig b { display: block; color: var(--ink); font-weight: 700; letter-spacing: 0; }
