/* JC & Co Digital: the studio is black and white, the work is in colour. */
:root {
  --black: #000000;
  --white: #ffffff;
  --fog: #f1f1ef;
  --graphite: #1c1c1c;
  --steel: #7d7d7d;
  --line-dark: rgba(255,255,255,.16);
  --line-light: rgba(0,0,0,.12);
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  /* modular scale, ratio 1.25 */
  --t-sm: .875rem; --t-base: 1.0625rem; --t-md: 1.375rem; --t-lg: clamp(1.6rem, 2.6vw, 2.2rem);
  --t-xl: clamp(2.4rem, 5.4vw, 4.6rem); --t-xxl: clamp(2.8rem, 7.4vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 var(--t-base)/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; 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(--white); color: var(--black); padding: 10px 16px; }
.skip:focus { top: 16px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid currentColor; background: transparent; color: inherit; font-size: 1rem; cursor: pointer; transition: background .2s, color .2s; }
.button:hover { background: currentColor; }
.button:hover { color: var(--white); background: var(--black); border-color: var(--black); }
.button.light { background: var(--white); color: var(--black); border-color: var(--white); }
.button.light:hover { background: transparent; color: var(--white); }

/* ---------- nav ---------- */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); mix-blend-mode: difference; }
.site-nav { transition: transform .35s ease; }
.site-nav.nav-hidden { transform: translateY(-110%); }
.site-nav:focus-within { transform: none; }
.brand img { width: 118px; height: auto; }
.site-nav nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav nav a, .nav-cta { text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--white); }
.site-nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { border: 1.5px solid var(--white); border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
@media (max-width: 860px) { .site-nav nav { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- hero ---------- */
.hero-section { position: relative; background: var(--black); }
.hero-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); z-index: 3; max-width: min(860px, 92vw); }
.hero-copy h1 { font-size: var(--t-xxl); letter-spacing: -.045em; line-height: .96; }
.hero-copy p { max-width: 34em; margin-top: 20px; color: #bdbdbd; font-size: var(--t-md); line-height: 1.4; }
.hero-copy .scroll-hint { font-size: var(--t-sm); color: var(--steel); margin-top: 28px; }
.hero-copy .scroll-hint::after { content: ""; display: block; width: 1px; height: 38px; margin-top: 10px; background: linear-gradient(var(--steel), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.stage { position: absolute; inset: 0; display: grid; place-items: center; }
.browser { position: relative; width: min(78vw, 1180px, calc((100svh - 230px) * 1.6)); border-radius: 14px; background: var(--graphite); box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px var(--line-dark); overflow: hidden; transform-origin: center; }
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line-dark); }
.chrome > i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.url { flex: 1; max-width: 420px; margin: 0 auto; height: 24px; border-radius: 7px; background: #2a2a2a; color: #a9a9a9; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.screen { aspect-ratio: 16 / 10; background: #101010; }
.layer { position: absolute; inset: 0; }
.layer-blank { display: grid; place-items: center; }
.caret { width: 3px; height: 34px; background: var(--white); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.layer-wire { opacity: 0; }
.wf { position: absolute; border: 1.5px dashed rgba(255,255,255,.38); border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.wf span { font-size: clamp(9px, 1.05vw, 14px); color: rgba(255,255,255,.55); }
.layer-site { opacity: 0; clip-path: inset(0 100% 0 0); }

.phone { position: absolute; left: 50%; top: 50%; width: clamp(130px, 15vw, 230px); aspect-ratio: 390 / 820; border-radius: 30px; background: #0d0d0d; box-shadow: 0 0 0 1px var(--line-dark), 0 30px 80px rgba(0,0,0,.7); padding: 9px; opacity: 0; }
.phone-screen { width: 100%; height: 100%; border-radius: 22px; background: #efe6d8; }
.notch { position: absolute; z-index: 2; left: 50%; top: 14px; width: 30%; height: 14px; margin-left: -15%; border-radius: 10px; background: #0d0d0d; }
.live-badge { position: absolute; top: 18%; right: 14%; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--white); color: var(--black); font-weight: 600; font-size: var(--t-sm); opacity: 0; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fae5b; }

.steps { position: absolute; z-index: 3; bottom: clamp(18px, 3.5vh, 34px); left: 50%; transform: translateX(-50%); display: flex; gap: clamp(14px, 3vw, 44px); list-style: none; padding: 0; font-size: var(--t-sm); color: var(--steel); opacity: 0; }
.steps { pointer-events: none; }
.steps.is-live { pointer-events: auto; }
.steps li { display: flex; transition: color .3s; }
.steps button { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.steps button:hover { color: var(--white); }
.steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 11px; }
.steps li.is-active { color: var(--white); }
.steps li.is-active span { background: var(--white); color: var(--black); border-color: var(--white); }
@media (max-width: 600px) {
  .steps { gap: 10px; }
  .steps li:not(.is-active):not(.bar) { font-size: 0; }               /* numbers only, except the current step */
  .steps li:not(.is-active):not(.bar) button { gap: 0; }
  .steps li:not(.is-active):not(.bar) span { font-size: 11px; }
  .browser { width: 92vw; }
  .phone { width: 26vw; }
  .hero-end p { font-size: 2rem; }
  .live-badge { top: 12%; right: 8%; }
}
.steps .bar { position: absolute; left: 0; right: 0; bottom: -12px; height: 1px; background: var(--line-dark); }
.steps .bar i { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(var(--p, 0)); }

.hero-end { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; opacity: 0; visibility: hidden; }
.hero-end p { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.04em; line-height: 1; }

/* ---------- work ---------- */
.work { background: var(--fog); color: var(--black); }
.work-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 110px 0 60px; overflow: hidden; }
.work-intro { padding: 0 var(--gutter); max-width: 900px; }
.work-intro h2, .process-head h2, .pricing-head h2 { font-size: var(--t-xl); }
.work-intro p, .section-lede, .process-head p, .pricing-head p { margin-top: 18px; max-width: 40em; color: #4a4a4a; font-size: var(--t-md); line-height: 1.45; }
.work-track { display: flex; gap: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); width: max-content; outline-offset: -4px; }
.work-card { width: min(68vw, 880px); flex: none; }
.work-card .frame { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line-light), 0 24px 60px rgba(0,0,0,.12); }
.work-card .chrome { background: #e7e7e4; border-bottom: 1px solid var(--line-light); height: 30px; }
.work-card .chrome > i { background: #c9c9c5; width: 9px; height: 9px; }
.work-card .url { background: var(--white); color: #666; height: 20px; font-size: 11.5px; }
.work-card .fit { aspect-ratio: 16 / 10; }
.work-card figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-top: 18px; align-items: baseline; }
.work-card h3 { font-size: var(--t-md); letter-spacing: -.02em; }
.work-card .style { white-space: nowrap; justify-self: start; font-size: var(--t-sm); border: 1px solid var(--line-light); border-radius: 999px; padding: 2px 10px; }
.work-card figcaption p { grid-column: 1 / -1; color: #555; max-width: 52ch; }
.work-card .concept { color: var(--steel); font-size: var(--t-sm); }
/* Pinned (wide screens): intro + whole card + caption must fit in one screen,
   so cards are sized by the viewport height as well as its width. */
@media (min-width: 861px) {
  .work-pin { height: 100vh; height: 100svh; min-height: 0; padding: 84px 0 32px; gap: 26px; }
  .work-intro h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
  .work-intro p { font-size: 1.0625rem; margin-top: 10px; }
  .work-card { width: min(68vw, 880px, calc((100svh - 430px) * 1.6)); }
  .work-card figcaption { margin-top: 14px; }
}
@media (max-width: 860px) {
  .work-pin { padding-top: 90px; }
  .work-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .work-card { width: 84vw; scroll-snap-align: center; }
}

/* ---------- before & after ---------- */
.ba { background: var(--white); color: var(--black); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.amp-title { font-size: var(--t-xxl); letter-spacing: -.05em; line-height: .9; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .12em; }
.amp { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.55em; line-height: .5; letter-spacing: 0; transform: translateY(.12em); }
.ba-tabs { display: flex; gap: 8px; margin: 40px 0 22px; flex-wrap: wrap; }
.ba-tabs button { font: 500 var(--t-sm) var(--sans); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--black); background: transparent; color: var(--black); cursor: pointer; }
.ba-tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }
.compare { position: relative; max-width: var(--max); }
.compare-frame { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-light), 0 30px 70px rgba(0,0,0,.12); }
.compare-after { aspect-ratio: 16 / 10; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.compare-handle i { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.compare-handle i::before, .compare-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare-handle i::before { left: 8px; border-right-color: var(--black); } .compare-handle i::after { right: 8px; border-left-color: var(--black); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + .x, .compare:focus-within .compare-handle i { outline: 3px solid var(--black); outline-offset: 2px; }
.tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; background: rgba(0,0,0,.75); color: var(--white); pointer-events: none; }
.tag-before { left: 14px; } .tag-after { right: 14px; }
.fineprint { margin-top: 16px; color: var(--steel); font-size: var(--t-sm); }

/* ---------- process ---------- */
.process { background: var(--fog); color: var(--black); padding: clamp(80px, 12vw, 160px) var(--gutter); display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: clamp(40px, 6vw, 100px); }
.process-head { position: sticky; top: 110px; align-self: start; }
.process-steps { list-style: none; padding: 0; }
.process-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 34px 0; border-top: 1px solid var(--line-light); }
.process-steps li:last-child { border-bottom: 1px solid var(--line-light); }
.process-steps .n { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.process-steps h3 { font-size: var(--t-lg); margin-bottom: 10px; }
.process-steps p { color: #4a4a4a; max-width: 52ch; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process-head { position: static; } }

/* ---------- pricing ---------- */
.pricing { background: var(--white); color: var(--black); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1.5px solid var(--black); }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 34px clamp(18px, 2.4vw, 34px) 38px; border-right: 1px solid var(--line-light); }
.plan:last-child { border-right: 0; }
.plan h3 { font-size: var(--t-lg); }
.plan .for { color: #555; min-height: 3em; }
.plan .price { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-top: 8px; }
.plan .price small { font-size: .35em; letter-spacing: 0; font-weight: 500; vertical-align: .9em; }
.plan .alt { font-size: var(--t-sm); color: #555; min-height: 2.8em; }
.plan ul { list-style: none; padding: 18px 0 8px; border-top: 1px solid var(--line-light); display: grid; gap: 9px; flex: 1; }
.plan li::before { content: "+ "; color: var(--steel); }
.plan .button { align-self: flex-start; }
.plan-featured { background: var(--black); color: var(--white); border-right: 0; }
.plan-featured .for, .plan-featured .alt { color: #bdbdbd; }
.plan-featured ul { border-top-color: var(--line-dark); }
.care { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 28px; padding: 30px clamp(18px, 2.4vw, 34px); background: var(--fog); border-radius: 12px; }
.care h3 { font-size: var(--t-md); margin-bottom: 6px; }
.care p { max-width: 56ch; color: #4a4a4a; }
.care-price { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.04em; white-space: nowrap; color: var(--black) !important; }
.care-price small { font-size: .5em; font-weight: 500; letter-spacing: 0; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .plan .for, .plan .alt { min-height: 0; }
  .care { flex-direction: column; align-items: flex-start; }
}

/* ---------- about ---------- */
.about { background: var(--black); padding: clamp(90px, 13vw, 180px) var(--gutter); }
.about-big { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; max-width: 20em; }
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 34em)); gap: 40px; margin-top: 56px; color: #bdbdbd; font-size: var(--t-md); line-height: 1.5; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--black); padding: 0 var(--gutter) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); border-top: 1px solid var(--line-dark); padding-top: clamp(80px, 11vw, 150px); }
.contact-head p { margin-top: 22px; color: #bdbdbd; font-size: var(--t-md); max-width: 30em; line-height: 1.45; }
.contact-head .email { color: var(--white); font-weight: 600; text-underline-offset: 5px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); color: #bdbdbd; }
.field input, .field select, .field textarea { font: inherit; color: var(--white); background: var(--graphite); border: 1px solid var(--line-dark); border-radius: 10px; padding: 13px 14px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--white); outline-offset: 0; border-color: transparent; }
.field textarea::placeholder { color: #6d6d6d; }
.privacy { font-size: var(--t-sm); color: var(--steel); }
.contact-form .button { justify-self: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 40px var(--gutter); border-top: 1px solid var(--line-dark); color: var(--steel); font-size: var(--t-sm); }
.site-foot .copy { margin-left: auto; }

/* ---------- reduced motion: no pinning, show the finished state ---------- */
@media (prefers-reduced-motion: reduce) {
  .layer-wire, .layer-blank { display: none; }
  .layer-site[data-brand="kiln"] { opacity: 1; clip-path: none; }
  .phone { opacity: 1; right: 6vw; bottom: 8vh; }
  .hero-copy .scroll-hint { display: none; }
  .steps { display: none; }
  * { animation: none !important; transition: none !important; }
}
