/* Dynamic Design & Services, site v2. Layout after cosentino.com/usa, content and brand Dynamic's own. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
}
:root {
  --page: #FFFFFF;
  --band: #E4E3DF;          /* grey band behind the recent slider */
  --chip: #ECECE8;          /* pill and tab fill */
  --ink: #212529;
  --ink-soft: #5B5E61;
  --line: #CFCFCA;
  --navy: #2F3E5F;          /* Dynamic navy, owners banner */
  --cyan: #2FA6DC;          /* Dynamic shirt cyan, quote tab only */
  --foot: #232323;
  --gutter: clamp(16px, 3.4vw, 48px);
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--gutter); background: var(--page); border-bottom: 1px solid var(--chip); }
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang { display: flex; margin-left: auto; font-size: 13px; font-weight: 500; }
.lang button { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink-soft); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.pill { background: var(--chip); border-radius: 999px; padding: 9px 16px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.pill:hover { background: var(--line); }

/* Fixed quote tab (Cosentino's yellow tab, in Dynamic cyan) */
.quote-tab { position: fixed; right: 0; top: 42vh; z-index: 19; display: flex; gap: 10px; align-items: center; background: var(--cyan); color: #0E1B24; padding: 13px 18px 13px 20px; border-radius: 4px 0 0 4px; font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.quote-tab i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }

/* 1. Hero */
.hero { position: relative; height: calc(100svh - 64px); min-height: 540px; max-height: 980px; overflow: hidden; background: #2A2724; color: #fff; }
.hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease; }
.hero-room { opacity: 0; }
.hero-room.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(12 12 12 / .6)); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(32px, 7vh, 72px); }
.hero-kicker { font-size: 15px; font-weight: 400; max-width: 30ch; margin-bottom: 14px; line-height: 1.4; }
.rooms { list-style: none; padding: 0; }
.rooms a { display: inline-block; text-decoration: none; text-transform: uppercase; font-weight: 200; font-size: clamp(42px, 5.2vw, 76px); line-height: .98; letter-spacing: -0.005em; opacity: .62; transition: opacity .35s; }
.rooms a:hover, .rooms a:focus-visible, .rooms a.on { opacity: 1; }
.hero-credit { position: absolute; z-index: 2; right: var(--gutter); bottom: 24px; font-size: 13px; opacity: .9; }

/* Shared */
.statement { font-weight: 300; text-transform: uppercase; font-size: clamp(28px, 2.7vw, 39px); line-height: 1.12; text-align: center; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.statement--left { text-align: left; margin: 0; }
.statement--light { color: #fff; }
.label { font-size: 14px; font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: #3F3F3E; color: #fff; padding: 11px 18px; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; }
.btn::after { content: "→"; }
.btn:hover { background: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--chip); }
.btn--ghost { background: none; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wide { width: 100%; justify-content: center; padding: 14px; }
.tabs { display: flex; gap: 28px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink-soft); white-space: nowrap; border-bottom: 1px solid transparent; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs--center { justify-content: center; margin: 28px 0 32px; }
.arrows { display: flex; gap: 6px; }
.arrow { width: 40px; height: 40px; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--ink-soft); }
.arrow:hover { color: var(--ink); }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }

/* 2. What we make */
.make { padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin: 40px 0 18px; }
.card { position: relative; flex: 0 0 clamp(240px, 24vw, 340px); aspect-ratio: 3 / 4.4; overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; background: var(--chip); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(rgb(0 0 0 / .45), transparent); z-index: 1; }
.card::after { content: "→"; position: absolute; left: 16px; bottom: 16px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .8); border-radius: 50%; font-size: 13px; }
.card h3 { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 1; font-size: 16px; font-weight: 400; }

/* 3. Recent */
.recent { background: var(--band); padding: 40px 0 56px; }
.recent-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 var(--gutter); margin-bottom: 22px; }
.progress { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-soft); }
.track { flex: 1; height: 1px; background: var(--line); position: relative; }
.track span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); transition: width .5s; }
.tile { position: relative; flex: 0 0 clamp(260px, 26vw, 380px); aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; color: #fff; background: var(--chip); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 50%; background: linear-gradient(rgb(0 0 0 / .5), transparent); }
.tile h3 { position: absolute; top: 18px; left: 18px; right: 18px; font-size: 19px; line-height: 1.2; font-weight: 300; text-transform: uppercase; }
.tile small { position: absolute; right: 14px; bottom: 14px; background: #F4ED9B; color: var(--ink); font-size: 11px; padding: 5px 9px; }

/* 4. From our shop */
.shop { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: clamp(64px, 8vw, 104px) var(--gutter); }
.shop-filter .label { margin-bottom: 14px; }
.shop-filter button { display: block; background: none; border: 0; padding: 5px 0; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.shop-filter button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.plate h3 { font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.plate .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--chip); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate p { margin-top: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.plate[hidden] { display: none; }

/* 5. Owners banner */
.owners { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin: 0 var(--gutter); background: var(--navy); color: #fff; padding: clamp(32px, 4vw, 56px); padding-right: 0; overflow: hidden; }
.owners .statement { margin-bottom: 28px; max-width: 18ch; }
.owners img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; }

/* 6. Our work */
.work { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid figure { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--chip); }
.grid figure:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.grid figure:hover img { transform: scale(1.04); }
.grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgb(0 0 0 / .55)); opacity: 0; transition: opacity .3s; }
.grid figure:hover figcaption, .grid figure:focus-within figcaption { opacity: 1; }
.grid figure[hidden] { display: none; }
.more { display: flex; margin: 28px auto 0; }
.more[hidden] { display: none; }

/* 7. Team */
.team { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.team .statement { font-size: clamp(30px, 3.2vw, 46px); }
.team figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* 8. When to call */
.when { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.when-copy p { margin: 28px 0 28px; max-width: 46ch; color: var(--ink-soft); }
.when img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 9. How it goes */
.how { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.cols p { font-size: 14px; color: var(--ink-soft); }

/* 10. Visit */
.visit { margin: 0 var(--gutter) clamp(72px, 9vw, 120px); background: var(--band); }
.visit-band { padding: 28px; text-align: center; font-size: 20px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.visit-body { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding: 0 28px 28px; align-items: end; }
.visit-copy { display: grid; gap: 18px; justify-items: center; text-align: center; }
.visit-copy img { width: 62%; aspect-ratio: 4 / 5; object-fit: cover; }
.visit-copy p { font-size: 14px; max-width: 34ch; }
.visit-photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

/* 11. Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.contact > div p { margin-top: 18px; color: var(--ink-soft); max-width: 38ch; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
input, select { font: inherit; font-size: 16px; color: var(--ink); background: #F1F8FB; border: 1px solid #D6E7EF; padding: 11px 12px; border-radius: 0; }
input:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 0; }
form .btn, .form-note { grid-column: 1 / -1; }
.form-note { font-size: 14px; min-height: 1.4em; }

/* 12. Footer */
.foot { background: var(--foot); color: #fff; padding: 48px var(--gutter) 28px; }
.foot > img { width: 120px; height: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 36px 0 48px; }
.foot h3 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.foot-cols a { display: block; font-size: 13px; color: #CFCFCF; text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { color: #fff; }
.foot-legal { font-size: 12px; color: #B9B9B9; }

/* Phone */
@media (max-width: 860px) {
  .nav, .pill { display: none; }
  .bar { height: 56px; gap: 12px; }
  .brand img { width: 104px; }
  html { scroll-padding-top: 100px; }
  .quote-tab { top: 56px; left: 0; right: 0; justify-content: center; border-radius: 0; padding: 9px; font-size: 13px; position: sticky; box-shadow: none; margin-bottom: -38px; }
  .hero { height: calc(100svh - 56px); }
  .hero-copy { padding-top: 40px; }
  .rooms a { font-size: clamp(40px, 11vw, 56px); }
  .hero-credit { left: var(--gutter); right: auto; bottom: 12px; }
  .tabs-row { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .arrows { display: none; }
  .card { flex-basis: 72vw; }
  .recent-head { grid-template-columns: auto 1fr; }
  .tile { flex-basis: 78vw; }
  .shop { grid-template-columns: 1fr; }
  .shop-filter div { display: flex; gap: 18px; }
  .plates { grid-template-columns: repeat(2, 1fr); }
  .owners { grid-template-columns: 1fr; padding: 32px 24px 0; gap: 24px; }
  .owners img { margin: 0 -24px; width: calc(100% + 48px); max-width: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid figure:nth-child(7n + 1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 4 / 3; }
  .grid figcaption { opacity: 1; }
  .tabs--center { justify-content: flex-start; }
  .team, .when, .how, .contact { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .visit { margin: 0 0 72px; }
  .visit-body { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .visit-photo { min-height: 220px; }
  form { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
