/* Daniel Mount Design */
:root {
  --bg: #ffffff;
  --fg: #1d1d1d;
  --muted: #8b8b8b;
  --line: #e7e7e5;
  --soft: #f4f4f2;
  --accent: #1d1d1d;
  --gutter: clamp(16px, 3vw, 40px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: clamp(16px, 1.8vw, 28px);
  --maxw: 1100px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.5 var(--sans); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--fg); color: var(--bg); }

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.display { font-size: clamp(44px, 9vw, 148px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 500; }
.dot { color: var(--accent); }
.arrow { width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 1.6; display: inline-block; vertical-align: middle; transition: transform .4s var(--ease); }
a:hover .arrow { transform: translate(2px, -2px) rotate(0deg); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header / menu ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); mix-blend-mode: difference; color: #fff; pointer-events: none;
}
.top > * { pointer-events: auto; }
.top .mark { width: 26px; fill: currentColor; }
.top-nav { display: none; gap: 28px; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; }
.top-nav a { position: relative; opacity: .65; transition: opacity .2s; }
.top-nav a:hover, .top-nav a[aria-current] { opacity: 1; }
.top-nav .num { display: none; }
.menu-btn { position: relative; width: 36px; height: 36px; }
.menu-btn i { position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn i:last-child { transform: rotate(90deg); }
.menu-open .menu-btn i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: rotate(135deg); }
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 28px; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-link { display: flex; align-items: baseline; gap: 18px; font-size: clamp(48px, 11vw, 120px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; border-bottom: 1px solid var(--line); padding: 8px 0; }
.menu-link .num { font-size: 12.5px; letter-spacing: .02em; color: var(--muted); min-width: 64px; }
.menu-link[aria-current] { color: var(--muted); }
.menu-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.menu-open { overflow: hidden; }
@media (min-width: 900px) {
  .top-nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- home hero ---------- */
.hero { position: relative; display: grid; place-items: center; padding: clamp(96px, 9vw, 140px) var(--gutter) clamp(64px, 8vw, 132px); }
.hero-id { text-align: center; }
.hero-id .mark { width: clamp(110px, 13vw, 200px); margin: 0 auto clamp(20px, 2.4vw, 34px); fill: var(--fg); }
.hero-id h1 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 400; letter-spacing: -0.02em; }
.hero-id .mark path, .hero-id .mark rect { transform-box: fill-box; transform-origin: bottom; animation: rise 1.1s var(--ease) both; }
.hero-id .mark rect:nth-of-type(1) { animation-delay: .08s; }
.hero-id .mark rect:nth-of-type(2) { animation-delay: .16s; }
.hero-id .mark path:last-child { animation-delay: .24s; }
.hero-id h1 { animation: fade 1s .35s var(--ease) both; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vclock { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; translate: 6px 0; white-space: nowrap; }
.hero-social { position: absolute; right: var(--gutter); bottom: 22px; display: flex; gap: 14px; }
.hero-social a { transition: opacity .2s; } .hero-social a:hover { opacity: .5; }
@media (max-width: 640px) { .vclock { display: none; } .hero-social { left: 0; right: 0; justify-content: center; } }

/* ---------- hero slider: tiles with alternating diagonal rounded corners (Daniel’s mockup) ---------- */
.slices { --sw: clamp(130px, 11.8vw, 181px); --gap: calc(var(--sw) * .05); position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
/* the set of slides is repeated 4x so wide screens never run out; each loop moves exactly one set */
.slices-track { display: flex; gap: var(--gap); width: max-content; animation: marquee calc(var(--n) * 5s) linear infinite; }
@keyframes marquee { to { transform: translateX(calc(var(--n) * -1 * (var(--sw) + var(--gap)))); } }
.slice { --rr: calc(var(--sw) * .41); position: relative; flex: none; width: var(--sw); aspect-ratio: 7 / 20; overflow: hidden; background: var(--soft); isolation: isolate;
  border-radius: var(--rr) 0 var(--rr) 0; }
.slice:nth-child(even) { border-radius: 0 var(--rr) 0 var(--rr); }
.slice img, .slice video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.slice:hover img, .slice:hover video { transform: scale(1.06); }

/* ---------- intro ---------- */
.intro { padding-block: clamp(80px, 12vw, 180px) clamp(60px, 9vw, 140px); display: grid; gap: 28px; }
.intro-text { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; max-width: 18ch; max-width: 22ch; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 3fr; } }

/* ---------- section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-title { font-size: clamp(44px, 6.4vw, 96px); font-weight: 500; letter-spacing: -0.05em; line-height: .95; }
.sec-link { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 22px 1px no-repeat; transition: background-size .5s var(--ease); }
.sec-link:hover { background-size: 100% 1px; }

/* ---------- motion / TV ---------- */
.tv { padding-top: clamp(100px, 14vw, 200px); }
.tv-head { display: grid; gap: 18px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.tv-text { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; max-width: 20ch; }
.tv-links { display: flex; gap: 28px; flex-wrap: wrap; }
.tv-links a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .2s; } .tv-links a:hover { border-color: var(--fg); }
@media (min-width: 900px) { .tv-head { grid-template-columns: 1fr auto; align-items: end; } }
.tv-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r); background: #140b22; box-shadow: 0 30px 60px -40px rgba(20, 11, 34, .6); }
.tv-video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services ---------- */
.services { padding-block: clamp(100px, 14vw, 200px) 0; }
.svc { display: grid; gap: 14px; }
.svc-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; min-height: clamp(320px, 32vw, 560px); padding: clamp(22px, 2.6vw, 44px);
  border-radius: calc(var(--r) * 1.6); background: var(--c); color: #1d1d1d; }
.svc-card > .mono { font-size: 14px; }
.svc-icon { width: clamp(56px, 4.6vw, 76px); place-self: center; fill: currentColor; transition: transform .8s var(--ease); }
.svc-card:hover .svc-icon { transform: rotate(90deg) scale(1.08); }
.svc-card h3 { font-weight: 500; font-size: 14px; margin-bottom: 10px; }
.svc-card p { max-width: 32ch; font-size: 16px; line-height: 1.45; }
@media (min-width: 640px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(4, 1fr); } }

/* ---------- footer ---------- */
.foot { padding: clamp(100px, 14vw, 200px) var(--gutter) 28px; }
.foot-cta { border-top: 1px solid var(--fg); padding-top: 16px; }
.foot-big { display: inline-flex; align-items: center; gap: .15em; margin-top: 10px; font-size: clamp(64px, 15vw, 250px); font-weight: 500; letter-spacing: -0.06em; line-height: .9; }
.foot-big .arrow { width: .6em; height: .6em; stroke-width: 1.2; }
.foot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; margin-top: clamp(60px, 9vw, 120px); padding-top: 18px; border-top: 1px solid var(--line); }
.foot-grid > div { display: flex; flex-direction: column; gap: 4px; }
.foot-grid a { width: fit-content; } .foot-grid a:hover { opacity: .55; }
.foot-grid p { margin-bottom: 6px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot a[href^="mailto"] { text-transform: none; }

/* ---------- page heads ---------- */
.page-head { padding-top: clamp(130px, 16vw, 220px); padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 22px; }
.lead { max-width: 40ch; font-size: 19px; }

/* ---------- project cards (home + projects page) ---------- */
.cards { display: grid; gap: 40px 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; gap: 48px 24px; } }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); background: var(--c, var(--soft)); isolation: isolate; }
.card-media > img:first-child, .card-media > video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .7s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .28); opacity: 0; transition: opacity .6s var(--ease); }
.card-logo { position: absolute; z-index: 2; left: 50%; top: 50%; width: auto; height: auto; max-width: 26%; max-height: 19%; object-fit: contain;
  translate: -50% -50%; opacity: 0; scale: .9; transition: opacity .55s var(--ease), scale .7s var(--ease); pointer-events: none; filter: drop-shadow(0 4px 24px rgba(0,0,0,.25)); }
.card-logo-text { display: flex; align-items: center; gap: .35em; max-width: none; max-height: none; color: #fff; font-size: clamp(22px, 2.25vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.card-logo-text img { height: 1.15em; width: auto; }
.card a:hover .card-media > img:first-child, .card a:hover .card-media > video,
.card a:focus-visible .card-media > img:first-child, .card a:focus-visible .card-media > video { filter: blur(18px); transform: scale(1.08); }
.card a:hover .card-media::after, .card a:focus-visible .card-media::after { opacity: 1; }
.card a:hover .card-logo, .card a:focus-visible .card-logo { opacity: 1; scale: 1; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; padding-top: 14px; }
.card-meta h2, .card-meta h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.card-meta .muted { text-align: right; margin-left: auto; }

/* ---------- project detail ---------- */
.p-head { padding-top: clamp(120px, 15vw, 200px); display: grid; gap: 26px; }
.back { width: fit-content; color: var(--muted); transition: color .2s; } .back:hover { color: var(--fg); }
.p-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 24px; border-top: 1px solid var(--fg); padding-top: 14px; }
.p-meta dd { margin-top: 4px; }
.p-intro { display: grid; gap: 24px; padding-block: clamp(50px, 7vw, 100px); }
.p-lede { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; }
.p-body { display: grid; gap: 1em; max-width: 60ch; color: #3d3d3d; font-size: 18px; }
@media (min-width: 900px) { .p-intro { grid-template-columns: 1fr 1fr; gap: 60px; } }
.gallery { display: grid; gap: clamp(10px, 1.2vw, 18px); width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.g-row { display: grid; gap: inherit; grid-template-columns: 1fr; }
@media (min-width: 760px) { .g-row { grid-template-columns: repeat(var(--n), 1fr); } }
.g-row.g-spread { gap: 0; grid-template-columns: 1fr 1fr; box-shadow: 0 1px 0 var(--line); }
.g-item { position: relative; overflow: hidden; border-radius: var(--r); background: var(--tile, var(--soft)); }
.g-row:not([style*="--n:1"]) .g-item { aspect-ratio: auto; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; }
.g-pad { display: grid; place-items: center; padding: clamp(40px, 9vw, 140px); min-height: 100%; }
.g-pad img { width: auto; height: auto; max-height: 360px; max-width: min(100%, 720px); object-fit: contain; }
.g-tight { border-radius: 0; }
.g-spread .g-tight:first-child { border-radius: var(--r) 0 0 var(--r); } .g-spread .g-tight:last-child { border-radius: 0 var(--r) var(--r) 0; }
.g-tall { max-width: 420px; justify-self: center; width: 100%; }
@media (min-width: 760px) {
  /* make multi-item rows share a height so pairs line up */
  .g-row:not(.g-spread) > .g-item { min-height: 100%; }
}
.sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 8px 12px; border-radius: 999px; background: rgba(20,20,20,.62); color: #fff; backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.sound b { font-weight: 400; opacity: .7; }

.next { padding-top: clamp(100px, 14vw, 200px); display: grid; gap: 40px; }
.next-main { display: grid; gap: 10px; border-top: 1px solid var(--fg); padding-top: 16px; }
.next-title { font-size: clamp(48px, 10vw, 160px); font-weight: 500; letter-spacing: -0.05em; line-height: .95; }
.next-title .arrow { width: .5em; height: .5em; stroke-width: 1.2; }
.next-more { display: grid; gap: 28px 20px; }
@media (min-width: 760px) { .next-more { grid-template-columns: 1fr 1fr; } }
.mini { display: grid; gap: 4px; }
.mini-media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r); margin-bottom: 10px; background: var(--soft); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mini:hover .mini-media img { transform: scale(1.04); }
.mini > span:nth-child(2) { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }

/* ---------- contact ---------- */
.contact-head .display { font-size: clamp(42px, 7.4vw, 120px); max-width: 15ch; }
.contact { display: grid; gap: 60px; padding-bottom: 20px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.contact-side { border-top: 1px solid var(--fg); padding-top: 16px; }
.contact-email { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 500; margin: 6px 0 12px; word-break: break-all; }
.contact-email a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact-email a:hover { background-size: 100% 1px; }
.copy { color: var(--muted); } .copy:hover { color: var(--fg); }
.social-list { display: flex; gap: 12px; }
.form { display: grid; gap: 26px; border-top: 1px solid var(--fg); padding-top: 16px; }
.form label { display: grid; gap: 8px; }
.form label > span { color: var(--muted); }
.form input, .form textarea { width: 100%; font: 400 20px/1.4 var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 12px; border-radius: 0; resize: vertical; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--fg); }
.hp { position: absolute; left: -9999px; }
.btn { justify-self: start; display: inline-flex; gap: 10px; align-items: center; padding: 16px 26px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 17px; transition: transform .3s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-2px); } .btn[disabled] { opacity: .5; pointer-events: none; }
.form-status:empty { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
main { animation: pagein .7s var(--ease) both; }
@keyframes pagein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .slices { overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- TV reel switch ---------- */
.tv-video:not(.on) { display: none; }
.tv-switch { position: absolute; left: 50%; bottom: clamp(12px, 2vw, 24px); translate: -50% 0; z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(20, 11, 34, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tv-switch button { padding: 9px 16px; border-radius: 999px; color: rgba(255,255,255,.75); white-space: nowrap; transition: background .3s, color .3s; }
.tv-switch button:hover { color: #fff; }
.tv-switch button[aria-pressed="true"] { background: #fff; color: #140b22; }

/* ---------- PDF downloads (project pages) ---------- */
.downloads { display: grid; gap: 16px; padding-top: clamp(40px, 6vw, 80px); }
.downloads ul { display: grid; gap: 10px; }
@media (min-width: 760px) { .downloads ul { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.dl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 20px 22px; border-radius: var(--r); background: var(--soft);
  transition: background .3s, color .3s; }
.dl > span:first-child { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.dl .mono { grid-column: 1; }
.dl .arrow { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; }
.dl:hover { background: var(--fg); color: var(--bg); } .dl:hover .muted { color: inherit; opacity: .6; }
.form-note { margin-top: -10px; }
