/* YAMAR Studio — shared client-facing UI/UX system */
:root {
  --ui-ink: #1c1c1e;
  --ui-ink-2: #27272a;
  --ui-paper: #f7f3ee;
  --ui-paper-2: #eee6dc;
  --ui-white: #fffdf9;
  --ui-gold: #d4af37;
  --ui-gold-dark: #806313;
  --ui-aqua: #2ca9a9;
  --ui-text: rgba(28, 28, 30, .82);
  --ui-muted: rgba(28, 28, 30, .64);
  --ui-soft: rgba(28, 28, 30, .46);
  --ui-line: rgba(28, 28, 30, .13);
  --ui-line-strong: rgba(28, 28, 30, .2);
  --ui-panel: rgba(255, 255, 255, .78);
  --ui-radius-sm: .5rem;
  --ui-radius: .875rem;
  --ui-radius-lg: 1.25rem;
  --ui-shadow-sm: 0 10px 28px rgba(58, 45, 31, .055);
  --ui-shadow: 0 24px 64px rgba(58, 45, 31, .09);
  --ui-ease: cubic-bezier(.2, .7, .2, 1);
}

html {
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }

button, input, select, textarea { min-width: 0; }

button, summary, select, label, a { -webkit-tap-highlight-color: transparent; }

::selection { background: rgba(212, 175, 55, .28); color: var(--ui-ink); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: .1875rem solid var(--ui-aqua);
  outline-offset: .1875rem;
  border-radius: .25rem;
}

.skip-link {
  top: .75rem;
  left: .75rem;
  z-index: 1200;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: .5rem;
  background: var(--ui-gold);
  color: #111;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .22);
}

.container { width: min(74rem, calc(100% - 3rem)); }

:where(.display-title, .section-title, .section-heading, .hero-h1, h1, h2) {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

:where(.lede, .section-copy, .section-body, .hero-sub, .hero-summary, .story-copy p,
  .client-work-desc, .build-card-desc, .demo-card-desc, .system-card-desc,
  .why-item-desc, .process-step-desc, .faq-item p, .project-form-intro,
  .detail-proof-copy p, .outcome-card p, .offer-panel p, .pricing-note) {
  color: var(--ui-muted);
  font-size: 1rem;
  line-height: 1.78;
}

:where(.eyebrow, .section-overline, .section-kicker, .price-kicker, .price-badge,
  .hero-aside-label, .meta-label, .service-num, .path-step-num, .footer-title,
  .footer-col-title, .planner-summary-label, .detail-aside-label) {
  font-size: .75rem;
  line-height: 1.45;
  letter-spacing: .14em;
}

/* Navigation and wayfinding */
.site-header, #nav, .topbar {
  border-bottom-color: rgba(212, 175, 55, .14);
  background: rgba(28, 28, 30, .95);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .12);
  backdrop-filter: blur(1.125rem) saturate(130%);
  -webkit-backdrop-filter: blur(1.125rem) saturate(130%);
}

.site-header { height: 5.25rem; }
.site-header .container { gap: 1.5rem; }
.site-brand::before { width: 7.75rem; height: 4.5rem; }

.site-nav { gap: clamp(.875rem, 1.55vw, 1.5rem); }
.site-nav a, .nav-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: .375rem 0;
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .105em;
}

.site-nav a::after, .nav-link::after { height: .125rem; }

.header-cta, .nav-cta { min-height: 2.75rem; }

.menu-toggle, .nav-mobile-toggle {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: .625rem;
}

.mobile-nav, .nav-mobile-menu {
  max-height: calc(100dvh - 5.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom-color: rgba(212, 175, 55, .16);
  background: rgba(24, 24, 26, .985);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .34);
}

.mobile-nav a, .nav-mobile-menu .nav-link {
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: .75rem 0;
  font-size: .875rem;
  letter-spacing: .075em;
}

.pricing-jump {
  top: 5.25rem;
  box-shadow: 0 .625rem 1.75rem rgba(0, 0, 0, .12);
}

.pricing-jump .container {
  min-height: 3.75rem;
  gap: 1.75rem;
  scroll-snap-type: x proximity;
}

.pricing-jump a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  letter-spacing: .105em;
  scroll-snap-align: start;
}

/* Page rhythm */
.page-hero { padding-block: clamp(6rem, 10vw, 8.5rem) clamp(5rem, 8vw, 7rem); }
.page-hero-grid { gap: clamp(3rem, 7vw, 5.5rem); }
.page-hero .lede { margin-top: 1.75rem; }
.page-hero .button-row { margin-top: 2rem; }

.display-title { font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1.02; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; }
.section { padding-block: clamp(5rem, 9vw, 7.5rem); }
.section-head { gap: clamp(2rem, 6vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.hero-aside { border-top-color: var(--ui-line-strong); }
.hero-aside-row { grid-template-columns: minmax(6.5rem, .42fr) 1fr; gap: 1rem; padding: 1rem 0; }
.hero-aside-value, .meta-value { font-size: .875rem; line-height: 1.55; }

.button, .btn, .deck-band-btn, .tryon-edit-btn, .tryon-live-btn {
  min-height: 3.125rem;
  padding-inline: 1.5rem;
  border-radius: .625rem;
  font-size: .8125rem;
  line-height: 1.25;
  letter-spacing: .085em;
  transition: transform .22s var(--ui-ease), box-shadow .22s ease,
    background-color .22s ease, border-color .22s ease, color .22s ease;
}

.button:hover, .btn:hover, .deck-band-btn:hover, .tryon-edit-btn:hover, .tryon-live-btn:hover {
  transform: translateY(-.125rem);
}

.button--primary, .btn-gold, .deck-band-btn { box-shadow: 0 .75rem 1.75rem rgba(212, 175, 55, .18); }
.button-row, .hero-actions { gap: .75rem; }

/* Cards and content surfaces */
:where(.service-feature, .work-card, .principle-card, .fit-card, .brief-form,
  .price-card, .industry-card, .solution-map-item, .planner-card, .choice-surface,
  .planner-summary, .detail-aside, .outcome-card, .offer-panel, .problem-card,
  .after-card, .included-item, .bundle-card, .faq-item, .deliverable,
  .client-work-card, .build-card, .demo-card, .system-card, .why-item,
  .tryon-stage, .tryon-chip) {
  border-radius: var(--ui-radius);
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-sm);
}

:where(.service-feature, .work-card, .principle-card, .fit-card, .price-card,
  .industry-card, .solution-map-item, .outcome-card, .offer-panel, .problem-card,
  .after-card, .included-item, .bundle-card, .faq-item, .deliverable,
  .client-work-card, .build-card, .demo-card, .system-card, .why-item,
  .tryon-chip) {
  transition: transform .28s var(--ui-ease), box-shadow .28s ease,
    border-color .28s ease, background-color .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  :where(.service-feature, .price-card, .industry-card, .solution-map-item,
    .outcome-card, .offer-panel, .problem-card, .after-card, .included-item,
    .bundle-card, .deliverable, .client-work-card, .build-card, .demo-card,
    .system-card.linked, .why-item, .tryon-chip):hover {
    transform: translateY(-.25rem);
    border-color: rgba(128, 99, 19, .34);
    box-shadow: var(--ui-shadow);
  }
}

.service-feature { grid-template-columns: 5.5rem minmax(13rem, .7fr) minmax(0, 1.3fr); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.service-feature h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
.service-feature p, .path-step p, .included-item p, .industry-card p,
.solution-map-item p, .problem-card p, .after-card p, .bundle-card p,
.care-row p, .price-summary, .system-tier p { font-size: .9375rem; line-height: 1.7; }

.module-list span, .work-tags span, .client-work-tag, .solution-tag {
  min-height: 1.875rem;
  display: inline-flex;
  align-items: center;
  padding: .375rem .625rem;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .065em;
}

.path-grid { border-radius: var(--ui-radius); overflow: hidden; background: rgba(255, 255, 255, .34); }
.path-step { min-height: 15rem; padding: 1.75rem 1.5rem; }
.path-step h3 { margin-top: 2.25rem; font-size: 1rem; }

.outcome-card, .principle-card, .fit-card, .problem-card, .after-card, .included-item,
.bundle-card, .price-card { padding: clamp(1.5rem, 3vw, 2rem); }

.outcome-card { min-height: 17rem; display: flex; flex-direction: column; }
.outcome-card h3 { margin-block: 1.75rem .75rem; font-size: 1rem; }
.outcome-card .text-link { margin-top: auto; padding-top: 1.25rem; }

.text-link, .client-work-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  letter-spacing: .075em;
  text-underline-offset: .25rem;
}

.faq-item summary {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  padding: 1.375rem 3.5rem 1.375rem 1.5rem;
  font-size: 1rem;
  line-height: 1.45;
}
.faq-item summary::after { top: 50%; transform: translateY(-50%); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; }

/* Forms and planning controls */
.field label, .project-field label {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--ui-text);
  font-size: .875rem;
  line-height: 1.4;
  letter-spacing: .045em;
}

.field input, .field select, .field textarea,
.project-form input, .project-form select, .project-form textarea,
.tryon-name-input {
  min-height: 3.25rem;
  padding: .875rem 1rem;
  border-width: .0625rem;
  border-radius: .625rem;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

.field textarea, .project-form textarea { min-height: 9rem; resize: vertical; }

.field input:hover, .field select:hover, .field textarea:hover,
.project-form input:hover, .project-form select:hover, .project-form textarea:hover {
  border-color: rgba(44, 169, 169, .48);
}

.field input:focus, .field select:focus, .field textarea:focus,
.project-form input:focus, .project-form select:focus, .project-form textarea:focus,
.tryon-name-input:focus {
  border-color: var(--ui-aqua);
  box-shadow: 0 0 0 .25rem rgba(44, 169, 169, .12);
}

.form-note, .project-form-note, .planner-security, .planner-disclaimer,
.project-form-status { font-size: .875rem; line-height: 1.65; }

.project-form-status[data-state="error"] { color: #ffaca3; }

.choice-surface, .priority-surface {
  min-height: 3.5rem;
  border-radius: .625rem;
}

.choice-surface { padding: 1rem; }
.choice-surface strong { font-size: .9375rem; }
.choice-surface small, .priority-surface { font-size: .875rem; line-height: 1.55; }
.choice-control input:checked + .choice-surface,
.priority-control input:checked + .priority-surface { box-shadow: 0 0 0 .1875rem rgba(44, 169, 169, .12); }

/* Homepage */
.nav-links { gap: .75rem; }
#nav .container { width: min(82rem, calc(100% - 3rem)); gap: 1.25rem; }
.hero-h1 span, .hero-badge, .section-overline, .section-heading em,
.badge-gold, .process-num, .system-card .open-arrow, .hero-tryon-link { color: var(--ui-gold-dark); }
.badge-aqua, .tryon-chip-icon, .client-work-status, .btn-aqua-outline { color: #126767; }
.deck-band .section-overline, .deck-band .section-heading em,
#cta-section .section-overline { color: var(--ui-gold); }
#cta-section .btn-aqua-outline { color: #40c7c7; }
#nav { min-height: 5.25rem; }
#nav .container { min-height: 5.25rem; }
.nav-logo-mark { width: 2.5rem; height: 2.75rem; }
.nav-logo-yamar { font-size: 1rem; }
.nav-logo-sub { font-size: .75rem; }

#hero { min-height: min(52rem, calc(100svh - 5.25rem)); }
.hero-content { max-width: 58rem; padding-block: clamp(5rem, 12vh, 8rem); }
.hero-badge { min-height: 2rem; display: inline-flex; align-items: center; font-size: .75rem; letter-spacing: .14em; }
.hero-h1 { max-width: 13ch; font-size: clamp(3.25rem, 7.5vw, 6rem); line-height: .98; }
.hero-sub { max-width: 43rem; margin-top: 1.75rem; }
.hero-btns { gap: .75rem; margin-top: 2rem; }
.hero-tryon-link { min-height: 2.75rem; font-size: .875rem; }

:where(#client-work, #what-we-build, #try-on, #demo-lab, #systems, #why-yamar,
  #process, #faq, #cta-section) { scroll-margin-top: 6.25rem; }

.client-work-card { overflow: hidden; border-radius: var(--ui-radius-lg); }
.client-work-content { padding: clamp(2rem, 5vw, 4rem); }
.client-work-title { font-size: clamp(1.75rem, 3.5vw, 3rem); text-wrap: balance; }
.client-work-actions { gap: .75rem; flex-wrap: wrap; }

.architecture-card { border-radius: var(--ui-radius); }
.architecture-card h3 { font-size: clamp(1rem, 1.7vw, 1.25rem); }
.architecture-copy { font-size: .9375rem; line-height: 1.7; }

.demo-card, .system-card, .why-item, .build-card { min-height: 100%; }
.demo-card-footer { margin-top: auto; }
.demo-card-title, .system-card-title, .why-item-title, .build-card-title { font-size: 1.0625rem; line-height: 1.4; }

.tryon-stage { overflow: hidden; border-radius: var(--ui-radius-lg); }
.tryon-input-pane { padding: clamp(1.75rem, 4vw, 3rem); }
.tryon-step-label { display: block; font-size: .875rem; }
.tryon-chip { min-height: 7rem; padding: 1rem; }
.tryon-chip-label { font-size: .9375rem; }
.tryon-chip-sub { font-size: .8125rem; }

.deck-band { border-radius: var(--ui-radius-lg); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .18); }

.process-step { border-radius: var(--ui-radius); }
.process-step-title { font-size: 1.0625rem; }

/* Case studies */
.topbar { height: 5.25rem; position: sticky; top: 0; z-index: 80; }
.brand::before { width: 7.75rem; height: 4.5rem; }
.back-link { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .8125rem; }
.case-hero { padding-block: clamp(5rem, 9vw, 7rem) clamp(3.5rem, 6vw, 5rem); }
.case-grid { gap: clamp(3rem, 7vw, 5rem); }
.hero-summary { font-size: 1rem; line-height: 1.78; }
.meta-row { grid-template-columns: minmax(6.5rem, .42fr) 1fr; padding: 1rem 0; }
.showcase { padding-bottom: clamp(5rem, 9vw, 7rem); }
.browser { border-radius: var(--ui-radius-lg); box-shadow: 0 2rem 5rem rgba(0, 0, 0, .22); }
.story, .deliverables, .principles { padding-block: clamp(5rem, 9vw, 7.5rem); }
.story-layout, .principles-grid { gap: clamp(3rem, 7vw, 5.5rem); }
.story-copy p, .next-project p { font-size: 1rem; line-height: 1.8; }
.deliverable { min-height: 15rem; padding: 1.75rem; }
.deliverable h3, .principle strong { font-size: .9375rem; }
.deliverable p, .principle p { font-size: .9375rem; line-height: 1.7; }
.next-project { padding-block: clamp(5.5rem, 10vw, 8rem); }

/* Legal and 404 pages */
body > .topbar .topbar-inner { min-height: 5.25rem; }
body > main.page { width: min(56rem, calc(100% - 3rem)); padding-block: clamp(5rem, 9vw, 7rem); }
body > main.page h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
body > main.page h2 { font-size: 1.125rem; line-height: 1.4; }
body > main.page p, body > main.page li { font-size: 1rem; line-height: 1.78; }
body > main.page section { padding-block: 2rem; }

body > main.card {
  width: min(38rem, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--ui-shadow);
}
body > main.card p { font-size: 1rem; }
body > main.card .btn { font-size: .8125rem; }

.site-footer { border-top-color: rgba(212, 175, 55, .14); }
.footer-main { gap: clamp(2rem, 5vw, 4rem); }
.footer-brand p, .footer-links a, .footer-link, .footer-bottom, .footer { font-size: .8125rem; line-height: 1.65; }
.footer-links a, .footer-link { min-height: 2.25rem; display: flex; align-items: center; }

@media (max-width: 1180px) {
  .site-header { height: 4.75rem; }
  .site-brand::before { width: 7rem; height: 4.125rem; }
  .pricing-jump { top: 4.75rem; }

  .mobile-nav, .nav-mobile-menu {
    top: 4.75rem;
    display: grid;
    gap: .125rem;
    padding: 1rem 1.5rem 1.5rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.75rem);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s var(--ui-ease), visibility .22s ease;
  }

  .mobile-nav.open, .nav-mobile-menu.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .page-hero-grid, .section-head, .case-grid, .story-layout, .principles-grid,
  .industry-layout, .contact-layout { grid-template-columns: 1fr; }

  .section-head .section-copy { justify-self: start; }
  .hero-aside, .case-meta { max-width: 42rem; }
  .service-feature { grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem 1.5rem; }
  .service-feature > :last-child { grid-column: 2; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 5rem; }
  .container { width: min(100% - 2rem, 74rem); }

  .page-hero { padding-block: 4.5rem 4rem; }
  .section { padding-block: 4.5rem; }
  .display-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .section-title { font-size: clamp(1.8rem, 9vw, 2.6rem); }

  .button-row, .hero-actions, .hero-btns { align-items: stretch; }
  .button-row .button, .hero-actions .button, .hero-btns .btn { flex: 1 1 100%; width: 100%; }

  .pricing-jump .container { width: 100%; padding-inline: 1rem; }

  .service-feature { grid-template-columns: 1fr; padding: 1.5rem; }
  .service-feature > :last-child { grid-column: auto; }

  .path-grid, .outcome-grid, .stack-grid, .deliverable-grid, .industry-grid,
  .problem-grid, .faq-grid, .price-grid, .bundle-grid, .included-grid,
  .principle-grid, .fit-grid, .after-grid { grid-template-columns: 1fr; }

  .path-step, .outcome-card, .deliverable { min-height: 0; }

  #hero { min-height: auto; }
  .hero-content { padding-block: 5rem 4.5rem; }
  .hero-h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .hero-scroll-hint { display: none; }

  .client-work-content { padding: 2rem 1.5rem; }
  .tryon-input-pane, .tryon-actions { padding: 1.5rem; }
  .tryon-chips { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .topbar { height: 4.75rem; }
  .brand::before { width: 7rem; height: 4.125rem; }
  .back-link { text-align: right; }

  body > main.page { width: min(100% - 2rem, 56rem); padding-block: 4.5rem; }
  body > main.page section { padding-block: 1.75rem; }
  body > main.card { padding: 2rem 1.25rem; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 1.5rem, 74rem); }
  .mobile-nav, .nav-mobile-menu { padding-inline: 1rem; }
  .hero-aside-row, .meta-row { grid-template-columns: 1fr; gap: .25rem; }
  .module-list span, .work-tags span, .client-work-tag, .solution-tag { white-space: normal; }
  body > main.page { width: min(100% - 1.5rem, 56rem); }
}

@media (pointer: coarse) {
  :where(a, button, summary, select, input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"])) { min-height: 2.75rem; }
}

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

@media (prefers-contrast: more) {
  :root { --ui-muted: rgba(28, 28, 30, .78); --ui-line: rgba(28, 28, 30, .28); }
  :where(.button, .btn, input, select, textarea, .service-feature, .price-card,
    .industry-card, .outcome-card, .faq-item) { border-width: .125rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, #nav, .topbar, .mobile-nav, .nav-mobile-menu {
    background: #1c1c1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
