.ya-home {
  --home-ink: #151311;
  --home-ink-soft: #231e19;
  --home-white: #fff7ec;
  --home-muted: #d5c7b9;
  --home-accent: #ffa464;
  --home-burnt: #8a421e;
  --home-paper: #f8f2e8;
  --home-line: #dbcdbd;
  --home-mono: ui-monospace, "Cascadia Mono", monospace;
  --home-serif: "Iowan Old Style", Georgia, serif;
  --home-gutter: clamp(18px, 5.4vw, 84px);
  background: var(--home-ink);
  color: var(--home-white);
}

.home-shell { width: min(1220px, calc(100% - 2 * var(--home-gutter))); margin-inline: auto; }
.ya-home a:focus-visible { outline-color: var(--home-accent); }
.home-paper a:focus-visible { outline-color: var(--home-burnt); }

.home-header { border-bottom: 1px solid #3e342e; }
.home-nav {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
}
.home-brand { display: block; width: 82px; }
.home-brand img { width: 100%; height: auto; }
.home-nav nav { justify-content: center; gap: clamp(16px, 3vw, 44px); }
.home-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #76533c;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--home-accent);
  font-size: .875rem;
  font-weight: 700;
}
.home-nav-cta:hover { border-color: var(--home-accent); }

.home-hero {
  background:
    linear-gradient(105deg, #151311ee 6%, #151311c9 42%, #15131113 100%),
    url("assets/metaal-1671.webp") center / cover no-repeat var(--home-ink);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(26px, 4.3vw, 68px);
  align-items: center;
  padding-block: clamp(68px, 7.2vw, 114px);
}
.home-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
  color: var(--home-accent);
  font: 650 clamp(.72rem, 1.12vw, .83rem)/1.5 var(--home-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.home-kicker::before { content: ""; width: 19px; height: 1px; flex: none; background: currentColor; }
.home-kicker span { opacity: .66; }
.home-hero h1 { font-size: clamp(2.5rem, 5.4vw, 5.65rem); line-height: .98; letter-spacing: -.067em; }
.home-hero h1 span, .home-story h2 span {
  display: block;
  font-family: var(--home-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.07em;
}
.home-hero h1 span { color: var(--home-accent); margin-top: .05em; }
.home-intro {
  max-width: 52ch;
  margin-top: 23px;
  color: var(--home-muted);
  font-size: clamp(1.02rem, 1.38vw, 1.16rem);
}
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.home-button, .home-text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: .95rem;
}
.home-button { padding: 14px 16px; min-height: 52px; border-radius: 12px; transition: background-color .2s; }
.home-button-accent { background: var(--home-accent); color: var(--home-ink); }
.home-button-accent:hover { background: #ffbd8d; }
.home-text-link { min-height: 44px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #bd8b68; }
.home-text-link:hover { text-decoration-color: currentColor; }

.home-hero-image { margin: 0; min-width: 0; }
.home-photo { position: relative; isolation: isolate; aspect-ratio: 1.3; overflow: hidden; border-radius: 24px; background: var(--home-ink-soft); }
.home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(150deg, #21160e50, transparent 41%), linear-gradient(0deg, #180e0c48, transparent 37%);
}
.home-hero-image figcaption { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 4px 9px; border-radius: 12px; margin-top: 8px; background: #151311e8; color: var(--home-muted); font-size: .84rem; }
.home-slide-label { min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.home-slide-controls:not([hidden]) { display: flex; flex: none; gap: 3px; }
.home-slide-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #72543e;
  border-radius: 9px;
  background: var(--home-ink-soft);
  color: var(--home-white);
  font-size: 1.12rem;
}
.home-slide-controls button:hover, .home-slide-controls button[aria-pressed="true"] { color: var(--home-accent); border-color: var(--home-accent); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .home-slide-controls [data-slide="pause"] { display: none; }
}
.home-photo-signal { display: flex; align-items: end; gap: 3px; height: 15px; color: var(--home-accent); }
.home-photo-signal i { width: 2px; height: 5px; background: currentColor; }
.home-photo-signal i:nth-child(2) { height: 9px; }
.home-photo-signal i:nth-child(3) { height: 13px; }
.home-photo-mark { color: var(--home-accent); font: 650 .72rem/1.4 var(--home-mono); margin-inline-start: auto; white-space: nowrap; }

.home-quick { border-top: 1px solid #4b3a30; background: #171412; }
.home-quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; }
.home-quick a { display: flex; align-items: center; gap: 8px; min-height: 61px; padding: 10px clamp(9px, 1.5vw, 23px); border-inline-start: 1px solid #4b3a30; }
.home-quick a:last-child { border-inline-end: 1px solid #4b3a30; }
.home-quick a span:first-child { color: var(--home-accent); font: 650 .72rem/1 var(--home-mono); }
.home-quick a span:last-child { margin-inline-start: auto; }
.home-quick a:hover { color: var(--home-accent); background-color: var(--home-ink-soft); }

.home-paper { background: var(--home-paper); color: var(--home-ink); }
.home-paper .home-kicker { color: var(--home-burnt); }
.home-story { padding-block: clamp(69px, 9vw, 130px); }
.home-story-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: clamp(32px, 6.5vw, 92px); }
.ya-home h2 { font-size: clamp(2.45rem, 5.3vw, 5rem); letter-spacing: -.065em; line-height: 1; }
.home-story h2 { max-width: 13ch; }
.home-story h2 span { margin-top: .12em; color: var(--home-burnt); text-wrap: balance; }
.home-story-copy { align-self: center; padding-inline-start: clamp(17px, 3vw, 42px); border-inline-start: 1px solid #b87246; }
.home-story-copy p { max-width: 47ch; color: #493b31; font-size: clamp(1.02rem, 1.6vw, 1.16rem); }
.home-story-copy p + p { margin-top: 15px; }
.home-story-copy .home-text-link { margin-top: 12px; color: var(--home-burnt); }

.home-services { padding-block: clamp(56px, 7.8vw, 105px); border-top: 1px solid var(--home-line); background: #f1e8dc; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 32px; margin-bottom: 34px; }
.home-section-heading > p { max-width: 36ch; color: #493b31; }
.home-service-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 14px; }
.home-service {
  --service-image-width: 43%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr var(--service-image-width);
  min-height: 202px;
  border-radius: 20px;
  overflow: hidden;
  background: #fffaf2;
}
.home-service-help { grid-column: 1 / -1; --service-image-width: 48%; }
.home-service-copy { display: flex; flex-direction: column; align-items: start; padding: clamp(16px, 2.2vw, 30px); }
.home-service-visual { position: absolute; inset: 0 0 0 auto; width: var(--service-image-width); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 23%); }
.home-service-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-service-alternate { opacity: 0; }
.home-service-help img { object-position: center 54%; }
.home-service h3 { font-size: clamp(1.18rem, 2vw, 1.65rem); line-height: 1.12; margin-block: 8px; }
.home-service p { color: #534438; font-size: .93rem; line-height: 1.45; }
.home-service .home-service-label { color: var(--home-burnt); font: 650 .76rem/1.4 var(--home-mono); letter-spacing: .035em; text-transform: uppercase; }
.home-service-arrow { line-height: 1; margin-top: auto; padding-top: 11px; color: var(--home-burnt); font-size: 1.25rem; }
.home-service:hover h3 { color: var(--home-burnt); }

.home-process { padding-block: clamp(64px, 8vw, 110px); background: var(--home-ink-soft); }
.home-process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 100px); align-items: start; }
.home-steps { list-style: none; padding: 0; counter-reset: home-step; }
.home-steps li { counter-increment: home-step; display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 20px 0; border-block-end: 1px solid #5c4739; }
.home-steps li:first-child { border-block-start: 1px solid #5c4739; }
.home-steps li::before { content: counter(home-step, decimal-leading-zero); color: var(--home-accent); font: 650 .8rem/1.5 var(--home-mono); }
.home-steps h3 { line-height: 1.2; }
.home-steps p { margin-top: 6px; color: var(--home-muted); }

.home-contact { background: linear-gradient(125deg, #1b1714, #2d2018); padding-block: clamp(50px, 7.5vw, 96px); }
.home-contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px clamp(20px, 9vw, 115px); }
.home-contact .contact-details { margin-top: 0; }
.home-footer { background: var(--home-ink); border-top: none; color: var(--home-muted); }

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .home-hero-copy { animation: arrival .55s ease-out both; }
  .home-hero-image { animation: arrival .65s .08s ease-out both; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-photo img, .home-service-visual img { transition: transform .4s ease-out, opacity .42s ease-out; }
  .home-photo:hover img, .home-service:hover img { transform: scale(1.045); }
  .home-service:hover .has-alternate-photo .home-service-alternate { opacity: 1; }
  .home-button span, .home-text-link span, .home-nav-cta span, .home-quick a span:last-child, .home-service-arrow { transition: transform .2s; }
  .home-button:hover span, .home-text-link:hover span, .home-nav-cta:hover span, .home-quick a:hover span:last-child, .home-service:hover .home-service-arrow { transform: translateX(3px); }
}

@media (max-width: 830px) {
  .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-quick a { min-height: 48px; }
  .home-quick a:nth-child(even) { border-inline-end: 1px solid #4b3a30; }
  .home-quick a:nth-child(n + 3) { border-top: 1px solid #4b3a30; }
  .home-quick a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .home-hero {
    background-image: linear-gradient(170deg, #151311e8 0%, #151311cc 44%, #15131135 100%), url("assets/metaal-960.webp");
    background-position: 75% center;
  }
  .home-hero-grid { grid-template-columns: 1fr; padding-block: 48px 35px; }
  .home-hero h1 { font-size: clamp(2.65rem, 9vw, 4.7rem); }
  .home-photo { aspect-ratio: 1.65; }
  .home-story-grid, .home-process-grid { grid-template-columns: 1fr; }
  .home-story h2 { max-width: 17ch; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-service { min-height: 162px; }
}

@media (max-width: 975px) {
  .home-nav { min-height: 0; grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 7px 0; }
  .home-brand { width: 65px; }
  .home-nav nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; gap: 0 14px; border-top: 1px solid #3e342e; }
  .home-nav nav a { padding-block: 9px; }
  .home-nav-cta { padding: 7px 8px; gap: 6px; font-size: .79rem; }
}

@media (max-width: 610px) {
  .home-nav nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .home-nav nav a:nth-child(even) { justify-self: end; }
  .home-section-heading { flex-direction: column; align-items: start; }
  .home-contact-grid { grid-template-columns: 1fr; }
  .home-service-help { --service-image-width: 43%; }
}

@media (max-width: 360px) {
  .home-hero h1 { font-size: clamp(2.2rem, 12vw, 2.65rem); }
  .home-hero .home-actions { gap: 8px 14px; }
  .home-hero .home-actions a { font-size: .9rem; }
}
