/* Approved Kinyar layout. Shared rules replace the historical design overrides. */
:root {
  color-scheme: light;
  --ink: #404040;
  --muted: #626262;
  --paper: #fff;
  --wash: #f6f6f4;
  --line: #dededb;
  --gutter: clamp(22px, 5vw, 88px);
  --section-space: 48px;
  --reading: 780px;
  --heading: 'Poppins', Arial, sans-serif;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
main, section, article, header, footer, figure, div { min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(32px, 3.65vw, 52px); line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: clamp(27px, 2.5vw, 38px); line-height: 1.27; letter-spacing: -.038em; }
h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.35; letter-spacing: -.028em; }
p { color: var(--muted); }
p + p { margin-top: 16px; }
.wrap { width: 100%; max-width: none; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { margin-bottom: 16px; color: var(--ink); font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; }
.skip:focus { top: 12px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; max-width: 100%; padding: 12px 22px; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center; cursor: pointer; }
.button { border: 1px solid #404040; border-radius: 999px; background: #404040; color: #fff; transition: background-color .16s ease; }
.button:hover { background: #242424; border-color: #242424; }
.button:disabled { cursor: wait; opacity: .7; }
.text-link { padding-inline: 12px; font-weight: 400; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: var(--ink); }
.button-label { min-width: 0; }
.action-grid { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; }
.action-grid svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Equal outer tracks keep navigation on the page's true center line. */
.site-header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 20px; padding-block: 20px; }
.brand-group { display: contents; }
.brand { position: relative; display: block; width: 290px; max-width: 100%; }
.brand img { width: 100%; height: auto; filter: none; color-scheme: only light; }
.site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
.header-mantra { grid-column: 3; grid-row: 1; justify-self: end; width: 320px; max-width: 100%; padding-left: 24px; border-left: 1px solid var(--line); }
.header-mantra img { width: 100%; height: auto; opacity: .7; filter: brightness(0); color-scheme: only light; }
.menu-toggle { display: none; }
#navigation { grid-column: 2; grid-row: 1; display: flex; align-items: stretch; justify-content: center; gap: 18px; }
#navigation a { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 6px 12px; white-space: nowrap; font-size: 14px; line-height: 1.35; }
#navigation a::after { content: ''; position: absolute; bottom: 4px; height: 2px; left: 6px; right: 6px; background: var(--ink); transform: scaleX(0); transition: transform .16s ease; }
#navigation a[aria-current="page"]::after, #navigation a:hover::after { transform: scaleX(1); }
.nav-icon { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Auto-dark paint detection in website.js changes only the lettering. */
.brand[data-logo-tone="dark"] > img { clip-path: inset(0 74% 0 0); }
.brand[data-logo-tone="dark"]::after { content: ''; position: absolute; inset: 0; pointer-events: none; color-scheme: only light; background: url('assets/kinyar-logo.png') center/contain no-repeat; clip-path: inset(0 0 0 26%); filter: brightness(0) invert(1); }
.header-mantra[data-logo-tone="dark"] img { filter: brightness(0) invert(1); }

/* Homepage: full-width backgrounds with centered content in each composition. */
.home-hero { display: grid; position: relative; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; background: var(--wash); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 52px 24px 52px var(--gutter); text-align: center; }
.hero-copy h1 { font-size: clamp(32px, 2.65vw, 43px); line-height: 1.24; }
.hero-description { max-width: 620px; margin: 24px auto 0; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 26px; }
.hero-image { position: relative; min-height: 450px; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,var(--wash),transparent 35%); pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.intro { display: grid; grid-template-columns: minmax(0,3fr) minmax(190px,1fr); gap: 44px; align-items: center; padding-block: var(--section-space); text-align: center; }
.intro h2 { margin-bottom: 20px; }
.perspective-statement { max-width: 920px; margin-inline: auto; padding-inline: 16px; }
.intro .audience { max-width: 920px; margin-inline: auto; font-size: 14px; }
.intro-mantra { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; border-left: 1px solid var(--line); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.intro-mantra i { width: 38px; height: 1px; margin-block: 10px; background: var(--line); }
.intro-mantra small { font-size: 11px; line-height: 1.8; letter-spacing: .14em; color: var(--muted); }
.services-section, .overview-services { padding-block: var(--section-space); }
.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading h2 { max-width: 1100px; margin-inline: auto; }
.service-intros { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto auto 2px auto auto; column-gap: 0; row-gap: 20px; border-top: 1px solid var(--line); }
.service-intros article { display: grid; grid-template-rows: subgrid; grid-row: span 5; justify-items: center; text-align: center; padding: 30px clamp(20px,2vw,40px); }
.service-intros article + article { border-left: 1px solid var(--line); }
.service-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; }
.service-icon svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.service-title { display: flex; align-items: center; justify-content: center; width: 100%; font-size: clamp(21px,1.7vw,26px); line-height: 1.35; }
.service-title a { max-width: 100%; }
.service-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.service-rule { display: block; width: 58px; height: 2px; background: #999; }
.service-intros p { max-width: 390px; margin: 0; font-size: 16px; line-height: 1.6; }
.service-intros .button { width: 255px; min-width: 0; align-self: end; }
.section-note { text-align: center; margin-top: 22px; font-size: 13px; }
.occupied { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,4vw,60px); align-items: center; padding-block: var(--section-space); }
.occupied figure { width: 100%; aspect-ratio: 1.65; overflow: hidden; }
.occupied img { width: 100%; height: 100%; object-fit: cover; }
.occupied > div { text-align: center; }
.occupied h2 { margin-bottom: 20px; }
.occupied p:not(.eyebrow) { max-width: 670px; margin-inline: auto; }
.occupied .button, .occupied .text-link { margin-top: 24px; }
.planning { padding-block: var(--section-space); border-top: 1px solid var(--line); text-align: center; }
.planning > div > p:not(.eyebrow), .planning > div > .text-link { display: none; }
.planning-sequence { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; list-style: none; padding: 0; margin: 30px 0 0; }
.planning-sequence li { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.step-number { display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: var(--wash); font-size: 18px; font-weight: 500; }
.planning-sequence h3 { font-size: 19px; margin-bottom: 6px; }
.planning-sequence p { font-size: 15px; }
.project-types { padding-block: var(--section-space); text-align: center; background: var(--wash); }
.project-types ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.project-types li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px; min-height: 142px; padding: 22px 14px; background: var(--paper); font-size: 15px; line-height: 1.5; }
.work-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.work-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.closing { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: var(--section-space); text-align: center; background: var(--wash); border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: 16px; }
.closing p:not(.eyebrow) { max-width: var(--reading); margin-inline: auto; }

/* Compact, centered F3 footer, shared by every public page. */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: 24px 16px; border-top: 1px solid var(--line); text-align: center; }
.footer-identity { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.site-footer .brand { width: 160px; }
.footer-facts p { margin: 0; font-size: 12px; line-height: 1.6; }
.footer-company { color: var(--ink); }
.footer-links, .footer-contact { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 20px; margin: 0; font-size: 14px; font-style: normal; }
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 5px 0; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { width: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
.footer-copyright { font-size: 12px; color: var(--muted); }

@media (max-width: 1250px) {
  .site-header { grid-template-columns: minmax(0,1fr) minmax(0,1fr); row-gap: 8px; padding-block: 16px 8px; }
  .header-mantra { grid-column: 2; }
  #navigation { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1000px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px var(--gutter); }
  .hero-copy h1 { max-width: 800px; margin-inline: auto; }
  .hero-description { max-width: var(--reading); }
  .hero-image { height: clamp(260px,38vw,360px); min-height: 0; }
  .hero-image::after { background: linear-gradient(180deg,var(--wash),transparent 30%); }
  .hero-image img { object-position: center 57%; }
  .service-intros { display: flex; flex-direction: column; }
  .service-intros article { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px 20px; }
  .service-intros article + article { border-left: 0; border-top: 1px solid var(--line); }
  .service-title { max-width: 600px; }
  .service-intros p { max-width: 560px; }
  .service-intros .button { align-self: center; }
  .intro { grid-template-columns: minmax(0,3fr) minmax(150px,1fr); gap: 24px; }
  .intro-mantra { padding-inline: 12px; }
  .occupied { gap: 30px; }
  .occupied figure { aspect-ratio: 1.15; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; --section-space: 36px; }
  body { font-size: 16px; }
  .site-header { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); column-gap: 12px; padding-block: 14px 6px; }
  .site-header .brand { width: min(290px,37vw); }
  .header-mantra { width: min(320px,42vw); padding-left: 14px; }
  #navigation { display: grid; width: calc(100% + 24px); margin-inline: -12px; grid-template-columns: 1fr 1fr 1.42fr 1fr 1fr; gap: 0 2px; }
  #navigation a { min-width: 0; min-height: 60px; padding-inline: 1px; font-size: 12px; letter-spacing: -.02em; }
  .nav-icon, .nav-icon svg { width: 19px; height: 19px; }
  #navigation a::after { left: 10%; right: 10%; }
  .hero-copy h1 { font-size: clamp(30px,7.8vw,40px); }
  .hero-description { font-size: 16px; margin-top: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 6px; width: min(100%,390px); margin-inline: auto; }
  .hero-actions > a { width: 100%; }
  .hero-image { height: 260px; }
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .perspective-statement { padding: 0; }
  .intro-mantra { border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 0; }
  .occupied { grid-template-columns: 1fr; gap: 28px; }
  .occupied figure { aspect-ratio: 1.55; }
  .planning-sequence { grid-template-columns: 1fr; gap: 26px; }
  .project-types ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .project-types li { font-size: 14px; padding: 20px 10px; }
  .closing .button { width: min(100%,350px); }
  .footer-links { max-width: 300px; gap: 0 18px; }
  .footer-links a, .footer-contact a { min-height: 40px; }
  .footer-contact { flex-direction: column; gap: 0; }
}
@media (max-width: 350px) {
  #navigation a { font-size: 12px; letter-spacing: -.045em; }
  .button { padding-inline: 16px; font-size: 14px; }
  .hero-title-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
}
