/* RAPID TIME CONSTRUCT — demo */

@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url(assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }

:root {
  --bg: #F8F7F4;
  --ink: #232927;
  --muted: #606863;
  --accent: #9C6B48;
  --accent-deep: #85583A; /* accent for small text and hover fills (AA on --bg) */
  --line: #DDDED9;
  --dark: #252B29;
  --white: #FFFFFF;
  --danger: #A8321F;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono-f: "Plex Mono", ui-monospace, monospace;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--head); font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
/* Shared 12-column grid: left block spans 1–7, right block 8–12. */
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.g > .l { grid-column: 1 / 8; }
.g > .r { grid-column: 8 / -1; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 8px; }
.mono { font: 400 .75rem/1.4 var(--mono-f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono i { font-style: normal; color: var(--accent); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--white); font: 600 .9375rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.link { padding: 4px 0; border: 0; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; color: var(--ink); font: 500 .9375rem/1.4 var(--body); text-decoration: none; cursor: pointer; transition: background-size .2s, color .15s; }
.link:hover { color: var(--accent-deep); background-size: 0 1px; background-position: right bottom; }

/* Header */
.head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { margin-right: auto; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 800 .8125rem/1.15 var(--head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo svg { flex: none; }
.logo__a { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { padding: 6px 0; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .2s; }
.nav a:not(.btn):hover { background-size: 100% 1px; }
.nav a.nav__tel { margin-left: 8px; padding-left: 32px; border-left: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav .btn { margin-left: -8px; }
.menu { display: none; }

/* Hero */
.hero { padding-block: clamp(28px, 5vh, 52px) clamp(48px, 7vh, 72px); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 48px 0 0; }
h1 { max-width: 9.5em; margin: 22px 0 26px; font-size: clamp(2.5rem, 5.5vw, 4.75rem); line-height: 1; letter-spacing: -.04em; }
.lead { max-width: 30em; margin-bottom: 32px; font-size: 1.125rem; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: auto; border: 1px solid var(--line); }
.facts div { padding: 14px 16px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dd { margin-top: 4px; color: var(--ink); font: 600 .9375rem/1.3 var(--head); letter-spacing: -.01em; white-space: nowrap; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--accent-deep); }
.hero .actions { margin-bottom: 40px; }

/* Form sheet */
.sheet { border: 1px solid var(--ink); background: var(--white); scroll-margin-top: 92px; }
.sheet__bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--line); font-size: .6875rem; }
form, .done { padding: clamp(18px, 2vw, 26px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.f--wide { grid-column: 1 / -1; }
.sheet h2 { font-size: 1.5rem; line-height: 1.15; margin-bottom: 4px; }
label { display: block; margin-bottom: 5px; color: var(--ink); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
label span { margin-left: 4px; color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #C4C7C1; border-radius: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--body); appearance: none; -moz-appearance: textfield; transition: border-color .15s, background-color .15s, box-shadow .15s; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { appearance: none; margin: 0; }
textarea { min-height: 68px; resize: vertical; }
select { padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23232927' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center no-repeat; }
select:invalid { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background-color: var(--white); box-shadow: inset 0 -2px 0 var(--accent); }
[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 -2px 0 var(--danger); }
.err { color: var(--danger); font-size: .8125rem; line-height: 1.35; }
.err:not(:empty) { margin-top: 5px; }
.sheet__foot { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.sheet__foot .btn { flex: none; }
.note { font-size: .8125rem; line-height: 1.4; }
.done { display: grid; gap: 14px; justify-items: start; }
.done .actions { margin-top: 8px; }

/* Sections */
.sec { padding-block: var(--sec); border-top: 1px solid var(--line); }
.sec h2, .cta h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; }
.sec__head { row-gap: 20px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head .mono { grid-column: 1 / -1; margin-bottom: clamp(8px, 2vw, 24px); }
.sec__head p.r { max-width: 30em; font-size: .9375rem; }

.rows { border-top: 1px solid var(--ink); }
.rows li { align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.rows__no { grid-column: 1 / 2; color: var(--accent-deep); }
.rows h3 { grid-column: 2 / 8; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.1; }
.rows p { grid-column: 8 / -1; max-width: 30em; }

.about { row-gap: clamp(28px, 4vw, 48px); align-items: start; }
.about__label { grid-column: 1 / -1; }
.about__h { grid-column: 1 / -1; text-transform: uppercase; letter-spacing: -.02em; }
.about__fig { grid-column: 1 / 6; }
.about__fig img { aspect-ratio: 5 / 4; object-fit: cover; background: var(--line); }
.about__fig figcaption { margin-top: 10px; font-size: .6875rem; }
.about__body { grid-column: 8 / -1; display: grid; gap: 18px; }
.about__lead { color: var(--ink); font: 500 clamp(1.25rem, 1.9vw, 1.5rem)/1.35 var(--head); letter-spacing: -.02em; }
.data { margin-top: 12px; border-top: 1px solid var(--ink); }
.data div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.data dd { color: var(--ink); font-size: .9375rem; font-weight: 500; }

/* Contact + footer (dark) */
.cta { padding-block: var(--sec); background: var(--dark); color: #B9BFBA; }
.cta .mono { color: #A0A8A2; }
.cta .mono i { color: #C99A78; }
.cta > .g { row-gap: clamp(28px, 4vw, 48px); align-items: end; }
.cta__label { grid-column: 1 / -1; }
.cta h2 { color: var(--bg); }
.cta .l p { max-width: 26em; margin: 20px 0 32px; font-size: 1.0625rem; }
.cta__tel { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(248, 247, 244, .2); color: var(--bg); font: 600 clamp(2.25rem, 4.2vw, 3.5rem)/1 var(--head); letter-spacing: -.03em; text-decoration: none; transition: color .15s; }
.cta__tel:hover { color: #D9AE8E; }
.cta :focus-visible, .foot :focus-visible { outline-color: var(--bg); }
.foot { background: var(--dark); color: #B9BFBA; font-size: .8125rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 40px; padding-block: 24px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(248, 247, 244, .16); }
.foot__name { color: var(--bg); font: 700 .8125rem/1.4 var(--head); letter-spacing: .1em; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-right: auto; }
.foot a { color: var(--bg); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .mono { color: #A0A8A2; font-size: .6875rem; }

/* Tablet */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .nav a.nav__tel { padding-left: 24px; }
  .hero__text { padding-right: 24px; }
  .facts div:nth-child(3) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  html { scroll-padding-top: 72px; }
  .head__in { height: 60px; }
  .logo { font-size: .75rem; }
  .menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; color: var(--ink); font: 400 .75rem/1 var(--mono-f); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .menu::after { content: ""; width: 18px; height: 7px; border-block: 1.5px solid currentColor; transition: height .15s; }
  .menu[aria-expanded="true"]::after { height: 0; border-bottom: 0; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gut) 24px; background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
  .head.is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); background: none; font: 600 1.25rem/1.2 var(--head); }
  .nav a.nav__tel { margin: 0; padding-left: 0; border-left: 0; }
  .nav .btn { margin: 20px 0 0; min-height: 48px; }

  .g > .l, .g > .r { grid-column: 1 / -1; }
  .hero { row-gap: 32px; padding-top: 36px; }
  .hero__text { padding: 0; }
  .hero .actions { margin-bottom: 0; }
  .facts { display: none; }
  .sheet { scroll-margin-top: 72px; }
  .sec__head { align-items: start; }
  .rows li { row-gap: 8px; }
  .rows h3, .rows p { grid-column: 2 / -1; }
  .about__fig, .about__body { grid-column: 1 / -1; }
  .about__fig { max-width: 620px; }
}

/* Mobile */
@media (max-width: 600px) {
  h1 { margin: 16px 0 18px; }
  .lead { margin-bottom: 0; font-size: 1.0625rem; }
  .hero__text .actions { display: none; } /* the form follows directly below */
  .hero { row-gap: 28px; padding-top: 28px; }
  form { grid-template-columns: 1fr; }
  .sheet__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .rows li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 8px; padding: 24px 0; }
  .rows__no { grid-column: 1; }
  .rows h3, .rows p { grid-column: 2; }
  .data div { grid-template-columns: 1fr; gap: 2px; }
  .cta .btn { width: 100%; }
  .foot__in, .foot ul { flex-direction: column; gap: 6px; }
  .foot .mono { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
