@layer base, layout, components, responsive;
@layer base {
  :root {
    --paper: #f5f1e8;
    --ink: #191919;
    --coral: #f34b35;
    --red: #ba3021;
    --citrus: #e6f164;
    --line: #c9c0b2;
    --muted: #514d46;
    --display: "Bricolage Grotesque", "Arial Black", sans-serif;
    --body: "Hanken Grotesk", Arial, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-padding-top: 6rem; }
  body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
  a { color: inherit; text-underline-offset: .2em; }
  button, input, select, textarea { font: inherit; }
  img { display: block; max-width: 100%; height: auto; }
  h1, h2, h3, p { margin: 0; }
  h1, h2, h3 { font-family: var(--display); line-height: .98; letter-spacing: -.045em; }
  h1 em { font: italic 1.11em/.86 var(--serif); letter-spacing: -.025em; color: var(--red); }
  :focus-visible { outline: 3px solid #2856a0; outline-offset: 4px; }
  [hidden] { display: none !important; }
  ::selection { color: var(--ink); background: var(--citrus); }
}
@layer layout {
  .wrap { width: min(100% - 5rem, 78rem); margin-inline: auto; }
  .section { padding-block: clamp(3.45rem, 7vw, 7rem); }
  .page-heading { padding-block: clamp(3.5rem, 8.2vw, 8rem) clamp(3rem, 6vw, 6rem); }
  .page-heading h1 { font-size: clamp(3.6rem, 8.1vw, 8.25rem); max-width: 14ch; margin-block: 1rem 1.4rem; }
  .page-heading > p:last-child, .about > div > p:not(.eyebrow) { max-width: 55ch; font-size: clamp(1.12rem, 2vw, 1.32rem); color: var(--muted); }
  .actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
  .section-intro { margin-bottom: clamp(1.8rem, 3.5vw, 3.2rem); }
  .section-intro h2, .investment h2, .contact-band h2 { font-size: clamp(2.6rem, 5.8vw, 5.25rem); margin-top: .65rem; }
  .section-intro > p:last-child:not(.eyebrow) { margin-top: 1.15rem; max-width: 57ch; color: var(--muted); font-size: 1.125rem; }
}
@layer components {
  .sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 9; background: var(--citrus); padding: .65rem; }
  .eyebrow { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
  .button { border: 1px solid var(--ink); color: var(--ink); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .6rem 1.05rem; background: transparent; text-decoration: none; cursor: pointer; font-weight: 800; line-height: 1.22; }
  .button:hover { background: var(--citrus); color: var(--ink); }
  .button.coral { background: var(--coral); }
  .button.coral:hover { background: var(--citrus); }
  .button.dark { background: var(--ink); color: var(--paper); }
  .button.dark:hover { background: var(--citrus); color: var(--ink); }
  .button.compact { min-height: 2.65rem; padding: .5rem .75rem; font-size: .92rem; }
  .header { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
  .header-inner { min-height: 4.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .brand { display: inline-grid; gap: .22rem; color: inherit; text-decoration: none; line-height: 1; }
  .brand strong { font: 800 1.4rem/1 var(--display); letter-spacing: -.05em; }
  .brand span:not(.brand-dot) { text-transform: uppercase; letter-spacing: .085em; font-weight: 700; font-size: .72rem; }
  .brand-dot { color: var(--red); }
  .desktop-nav, .footer nav { display: flex; gap: clamp(1rem, 2.7vw, 2.2rem); align-items: center; }
  .desktop-nav a, .footer nav a { text-decoration: none; font-weight: 700; }
  .desktop-nav a:hover, .desktop-nav a[aria-current="page"], .footer nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .37em; }
  .mobile-menu { display: none; }
  .hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(1.3rem, 3vw, 3rem); min-height: min(47rem, calc(100vh - 4.85rem)); align-items: center; padding-block: clamp(3.75rem, 7vw, 7rem); }
  .hero h1 { font-weight: 800; font-size: clamp(3.3rem, 6.7vw, 8rem); margin-block: 1.05rem 1.65rem; line-height: .89; }
  .hero h1 em { font-size: 1.14em; }
  .hero-description { max-width: 40ch; font-size: clamp(1.13rem, 1.65vw, 1.35rem); color: var(--muted); }
  .hero .actions { margin-top: 1.8rem; }
  .hero-visual { isolation: isolate; position: relative; width: 100%; aspect-ratio: 1.18; margin-top: -.4rem; }
  .visual-backdrop { position: absolute; inset: 1% 3% 8% 8%; z-index: -1; background: var(--citrus); border: 1px solid var(--ink); border-radius: 46% 47% 41% 47% / 36% 48% 44% 56%; transform: rotate(-9deg); }
  .featured { position: absolute; width: 76%; filter: drop-shadow(3px 9px 0 #1919191c); transition: transform 220ms ease; }
  .featured-first { top: 8%; left: 5%; transform: rotate(-7deg); }
  .featured-second { top: 44%; right: 2%; transform: rotate(5deg); }
  .featured-first:hover { transform: rotate(-3deg); z-index: 2; }
  .featured-second:hover { transform: rotate(2deg); }
  .visual-link { position: absolute; right: 7%; bottom: -2%; font-weight: 800; }
  .frame { border: 1px solid var(--ink); border-radius: 7px; overflow: hidden; background: #fcf9f2; }
  .frame-bar { min-height: 1.75rem; display: flex; gap: .65rem; align-items: center; padding: .25rem .55rem; border-bottom: 1px solid var(--ink); }
  .frame-dots { display: inline-flex; gap: .24rem; flex-shrink: 0; }
  .frame-dots i { width: .36rem; height: .36rem; border: 1px solid var(--ink); border-radius: 50%; }
  .frame-dots i:first-child { background: var(--coral); }
  .frame-url { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: .75rem; color: #514d46; }
  .frame > img { width: 100%; aspect-ratio: 2.28; object-fit: cover; object-position: top; }
  .audience { background: var(--ink); color: var(--paper); }
  .audience-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; padding-block: 1.3rem; }
  .audience p { font-weight: 750; }
  .audience ul { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem 1.15rem; padding: 0; margin: 0; color: var(--citrus); }
  .offer-grid, .demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .offer-grid article { border-top: 2px solid var(--ink); padding: 1.15rem .6rem 0 0; }
  .offer-grid h3, .process h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
  .offer-grid p, .process p:not(.eyebrow) { margin-top: .55rem; color: var(--muted); }
  .home-work { background: #eae3d5; border-block: 1px solid var(--line); }
  .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .project a { display: block; text-decoration: none; }
  .project .frame { transition: box-shadow 160ms ease; }
  .project a:hover .frame { box-shadow: 5px 5px 0 var(--coral); }
  .project-caption { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem 1rem; padding-top: .85rem; }
  .project-caption h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.08; }
  .project-link { font-size: .92rem; font-weight: 800; text-decoration: underline; white-space: nowrap; }
  .section-action { margin-top: 2rem; }
  .process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.7rem; margin: 0; padding-left: 1.55rem; }
  .process-list li { padding-left: .2rem; }
  .process-list li::marker { color: var(--red); font-weight: 800; }
  .investment { background: var(--citrus); }
  .investment-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.6rem 3.2rem; }
  .investment h2 + p { margin-top: 1rem; }
  .price { border-left: 1px solid var(--ink); padding-left: clamp(1.5rem, 4vw, 4rem); }
  .price-value { font: 800 clamp(3.25rem, 6.4vw, 6rem)/1 var(--display); letter-spacing: -.065em; }
  .price p + p, .price > p { margin-top: .38rem; }
  .price .button { margin-top: 1rem; }
  .faq { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 2rem; }
  .faq .section-intro { margin: 0; }
  .faq-list details { border-top: 1px solid var(--line); }
  .faq-list details:last-child { border-bottom: 1px solid var(--line); }
  .faq-list summary { padding: 1rem 0; font-weight: 800; cursor: pointer; }
  .faq-list details p { padding-bottom: 1rem; color: var(--muted); }
  .contact-band { background: var(--coral); border-block: 1px solid var(--ink); }
  .band-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; padding-block: clamp(2.1rem, 5vw, 4.3rem); }
  .contact-band h2 { margin: 0; }
  .contact-band .button { flex-shrink: 0; }
  .footer { border-top: 1px solid var(--line); }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.1rem 2rem; padding-block: 2rem; }
  .footer-inner > a:last-child { font-weight: 750; }
  .projects-page { padding-top: 0; }
  .examples { background: var(--ink); color: var(--paper); }
  .examples .section-intro > p:last-child:not(.eyebrow) { color: #e0d9ce; }
  .examples .section-intro .eyebrow { color: var(--citrus); }
  .demo-card { background: var(--paper); color: var(--ink); border-radius: 6px; overflow: hidden; }
  .demo-card .frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--ink); }
  .demo-thumb { position: relative; aspect-ratio: 1.65; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; padding: 1rem; color: #fffaf0; }
  .demo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .demo-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #101513db, #10151312 85%); z-index: -1; }
  .demo-thumb strong { font: 400 1.45rem/1 var(--serif); }
  .demo-thumb p { margin-top: .3rem; }
  .demo-caption { padding: 1.05rem; }
  .demo-caption h3 { font-size: 1.58rem; margin-block: .38rem .9rem; }
  .demo-dialog { width: min(55rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); border: 1px solid var(--ink); border-radius: 6px; margin: auto; padding: 0; background: var(--paper); color: var(--ink); }
  .demo-dialog::backdrop { background: #191919aa; }
  .dialog-top { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--line); }
  .dialog-top h2 { margin-top: .25rem; font-size: 1.45rem; }
  .demo-site { background: #eee9dc; color: #223c30; }
  .demo-site.clinic { background: #e1e9e3; color: #1d3935; }
  .demo-site.salon { background: #f0e0e0; color: #492e3c; }
  .demo-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .75rem 1rem; border-bottom: 1px solid currentColor; }
  .demo-tabs button { cursor: pointer; background: none; color: inherit; border: 1px solid transparent; border-radius: 3px; padding: .28rem .65rem; }
  .demo-tabs button[aria-pressed="true"] { border-color: currentColor; font-weight: 800; }
  .demo-page { min-height: 14rem; padding: clamp(1.1rem, 4vw, 2.6rem); }
  .demo-page h3 { font: 400 clamp(2.3rem, 5vw, 4rem)/.95 var(--serif); margin: .45rem 0 .75rem; }
  .demo-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; }
  .demo-hero img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
  .demo-request { margin: .8rem 1rem; }
  .about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
  .about > div > p:not(.eyebrow) + p, .about .actions { margin-top: 1.2rem; }
  .about figure { align-self: center; margin: 0; width: min(100%, 26rem); justify-self: center; }
  .about figure img { border: 1px solid var(--ink); border-radius: 48% 48% 3px 3px / 30% 30% 3px 3px; background: #eae3d5; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .about figcaption { margin-top: .75rem; font-size: .92rem; }
  .contact-layout { scroll-margin-top: 1rem; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: start; gap: clamp(1.3rem, 4vw, 4rem); }
  .contact-intro h1 { font-size: clamp(3.25rem, 6.4vw, 6.55rem); }
  .contact-intro > p:not(.eyebrow) { font-size: 1.16rem; color: var(--muted); max-width: 38ch; }
  .contact-intro .button { margin-top: 1rem; }
  .contact-handle { margin-top: .6rem; }
  .contact-form-card { border: 1px solid var(--ink); border-radius: 5px; background: #fcf9f2; padding: clamp(1rem, 3vw, 2.1rem); }
  .contact-form-card h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
  .contact-form-card > p { margin-block: .6rem 1rem; color: var(--muted); }
  .form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.05rem; }
  .form-fields label { display: grid; align-content: start; gap: .25rem; font-weight: 800; }
  .form-fields input, .form-fields select, .form-fields textarea, .project-output textarea { width: 100%; min-height: 2.65rem; border: 1px solid #797064; border-radius: 3px; background: #fffefa; padding: .45rem .5rem; color: var(--ink); font-weight: 400; }
  .form-fields textarea, .project-output textarea { resize: vertical; }
  .form-fields .optional { font-size: .9rem; font-weight: 500; color: var(--muted); }
  .full-field { grid-column: 1 / -1; }
  .project-output { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  .project-output h3 { font-size: 1.35rem; margin-bottom: .55rem; }
  .project-output .actions { margin-top: .6rem; }
  #copy-status:not(:empty) { margin-top: .5rem; }
}
@layer responsive {
  @media (max-width: 940px) {
    .wrap { width: calc(100% - 3rem); }
    .header-inner { gap: 1rem; }
    .desktop-nav { gap: .85rem; }
    .hero { min-height: 0; }
    .featured-first { top: 11%; }
    .featured-second { top: 44%; }
    .visual-link { bottom: -4%; }
    .footer-inner { flex-wrap: wrap; }
  }
  @media (max-width: 735px) {
    html { scroll-padding-top: 4.25rem; }
    .wrap { width: calc(100% - 2rem); }
    .header-inner { min-height: 4rem; }
    .desktop-nav, .header-cta { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu summary { cursor: pointer; font-weight: 800; }
    .mobile-menu nav { position: absolute; inset: 100% 0 auto; display: grid; padding: .7rem 1rem 1rem; gap: .25rem; border-block: 1px solid var(--line); background: var(--paper); }
    .mobile-menu nav a:not(.button) { padding: .45rem .2rem; }
    .mobile-menu .button { justify-self: start; margin-top: .3rem; }
    .hero { grid-template-columns: 1fr; gap: 1.45rem; padding-block: 3rem 2rem; }
    .hero h1 { font-size: clamp(3.95rem, 13vw, 7rem); }
    .hero-visual { width: min(100%, 33rem); justify-self: center; margin: 0 0 1rem; }
    .visual-link { bottom: -.95rem; }
    .audience-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .offer-grid, .process-list, .demo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .investment-inner, .faq, .about, .contact-layout { grid-template-columns: 1fr; }
    .price { padding: 1rem 0 0; border: 0; border-top: 1px solid var(--ink); }
    .project-caption { flex-direction: column; }
  }
  @media (max-width: 500px) {
    .project-grid, .offer-grid, .process-list, .demo-grid, .form-fields { grid-template-columns: 1fr; }
    .process-list { gap: 1.15rem; }
    .project-grid { gap: 1.35rem; }
    .form-fields .full-field { grid-column: auto; }
    .contact-intro h1 { font-size: clamp(3.15rem, 12vw, 4.7rem); }
    .band-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer nav { flex-wrap: wrap; gap: .65rem 1rem; }
    .demo-hero { grid-template-columns: 1fr; }
    .demo-hero img { max-height: 13rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  }
}
