/* Hook Mountain Studios — dark, minimal. One cover screen, then a short scroll. */
:root {
  --bg: #0a0a0a;
  --fg: #f3eee4;
  --fg-2: rgba(243, 238, 228, .62);
  --fg-3: rgba(243, 238, 228, .36);
  --line: rgba(243, 238, 228, .14);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.cover-nav a, .contacts a, .footer a, .contact-email {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1), color .3s;
}
.cover-nav a:hover, .contacts a:hover, .footer a:hover, .contact-email:hover { text-decoration: none; background-size: 100% 1px; }
.contact-email { background-size: 0 2px; padding-bottom: .08em; }
.contact-email:hover { background-size: 100% 2px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--fg); color: var(--bg); padding: .5rem .8rem; }
.skip:focus { left: .5rem; z-index: 10; }
.wrap { width: min(1100px, 100% - 2 * var(--pad)); margin: 0 auto; }
.mark { width: 36px; height: auto; color: var(--fg); flex: none; }

/* ---------- cover ---------- */
.cover { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: var(--pad); }
.cover-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.brand { display: inline-flex; align-items: flex-start; gap: .55rem; }
.brand .mark { transform: translateY(1px); }
.brand .mark rect { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.brand .mark rect:nth-child(2) { transition-delay: .04s; } .brand .mark rect:nth-child(3) { transition-delay: .08s; }
.brand .mark rect:nth-child(4) { transition-delay: .12s; } .brand .mark rect:nth-child(5) { transition-delay: .16s; }
.brand:hover .mark rect { transform: translateY(-1.5px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--fg-2); margin-top: .1rem; }
.brand:hover { text-decoration: none; }
.cover-nav { display: flex; gap: 1.6rem; font-size: .95rem; padding-top: .15rem; }
.cover-nav a:last-child { color: var(--fg-2); }
.nav-short { display: none; }
.cover-nav a:last-child:hover { color: var(--fg); }

.statement .line { display: block; }
.statement {
  align-self: center; justify-self: center; margin: 0; max-width: 24ch;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.9vw, 2.2rem); line-height: 1.22; letter-spacing: -.015em;
}

.cover-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; }
.contacts { margin: 0; display: grid; gap: .15rem; }
.contacts div { display: grid; grid-template-columns: 1.4rem 1fr; align-items: baseline; }
.contacts dt { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .02em; }
.contacts dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; }
.scroll-cue { color: var(--fg-2); display: inline-flex; padding: .4rem; justify-self: center; animation: cue 2.6s ease-in-out infinite; }
.scroll-cue:hover { color: var(--fg); text-decoration: none; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
.cover-art { margin: 0; justify-self: end; width: min(260px, 100%); }
.cover-art svg { width: 100%; height: auto; display: block; }
.cover-art figcaption { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--fg-3); margin-top: .4rem; text-align: right; }
.skyline .ridge { stroke: var(--fg); stroke-width: 2.2; }
.skyline .ridge-far { stroke: var(--fg-3); stroke-width: 1.4; }
.skyline .trees path { stroke: var(--fg-2); stroke-width: 1.4; }
.skyline .cliff path { stroke: var(--fg-2); stroke-width: 1.1; opacity: .6; }
.skyline .river path { stroke: var(--fg-2); stroke-width: 1.3; }
.skyline .river path:nth-child(n+2) { stroke-width: 1; opacity: .5; }
.skyline .sail path { stroke: var(--fg); stroke-width: 1.4; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(3rem, 7vw, 6rem) 0; }
.section::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--line); transform-origin: left; }
.label { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

.section-lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.25; margin: -.75rem 0 clamp(1.75rem, 3.5vw, 3rem); max-width: 34ch; color: var(--fg); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.split .label { margin: .35rem 0 0; }
.split .section-lede { margin-top: 0; }

.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { border-top: 1px solid var(--line); }
.work-list li:last-child { border-bottom: 1px solid var(--line); }
.work-list a { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.15rem 0; }
.work-list a:hover { text-decoration: none; }
.work-client, .work-kind, .work-year { transition: transform .5s cubic-bezier(.2,.7,.2,1), color .4s; }
.work-list a:hover .work-client { transform: translateX(.4rem); }
.work-list a:hover .work-kind, .work-list a:hover .work-year { color: var(--fg); }
.work-client { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -.01em; }
.work-kind { color: var(--fg-2); font-size: .95rem; }
.work-year { font-family: var(--serif); font-size: 1.1rem; color: var(--fg-2); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.services h2 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin: 0 0 .6rem; letter-spacing: -.01em; }
.services p { margin: 0; color: var(--fg-2); font-size: .98rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--fg-3); margin-bottom: .9rem; }
.steps h2 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--fg-2); font-size: .98rem; }

.about { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.about .label { margin: .35rem 0 0; }
.about-copy { max-width: 56ch; }
.about-lede { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin: 0 0 1.25rem; }
.about-copy p { margin: 0 0 1rem; color: var(--fg-2); }
.about-copy p:last-child { margin: 0; }

.contact-line { margin: 0 0 .75rem; font-family: var(--serif); font-size: 1.35rem; color: var(--fg-2); }
.contact-email { display: inline-block; font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 5vw, 3.6rem); letter-spacing: -.025em; line-height: 1.05; }
.contact-note { margin: 1rem 0 0; color: var(--fg-3); font-size: .95rem; }

.footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; font-size: .85rem; color: var(--fg-3); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg-2); font-family: var(--display); font-weight: 600; }
.footer-brand .mark { width: 28px; color: var(--fg-2); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .cover { grid-template-rows: auto 1fr auto; row-gap: 2.5rem; }
  .cover-top { gap: .75rem; }
  .brand-name { font-size: .95rem; white-space: nowrap; }
  .brand-sub { font-size: 1rem; }
  .cover-nav { gap: 1rem; font-size: .88rem; white-space: nowrap; }
  .cover-nav a:nth-child(2), .nav-long { display: none; }
  .nav-short { display: inline; }
  .statement { justify-self: start; max-width: 15ch; font-size: clamp(1.55rem, 7vw, 2rem); }
  .statement .line { display: inline; }
  .cover-bottom { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .scroll-cue { display: none; }
  .cover-art { justify-self: start; width: min(240px, 70%); }
  .cover-art figcaption { text-align: left; }
  .work-list a { grid-template-columns: 1fr auto; }
  .work-kind { grid-column: 1 / -1; margin-top: -.6rem; }
  .services { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: .5rem; }
  .split .label { margin: 0 0 1.25rem; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: .5rem; }
  .about .label { margin: 0 0 1.25rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* cover entrance: everything rises into place, in reading order */
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .brand, .cover-nav, .statement .line, .contacts > div, .cover-art figcaption {
    animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
  }
  .brand { animation-delay: .1s; }
  .cover-nav { animation-delay: .25s; }
  .statement .line:nth-child(1) { animation-delay: .45s; }
  .statement .line:nth-child(2) { animation-delay: .57s; }
  .statement .line:nth-child(3) { animation-delay: .69s; }
  .contacts > div:nth-child(1) { animation-delay: .9s; }
  .contacts > div:nth-child(2) { animation-delay: .98s; }
  .contacts > div:nth-child(3) { animation-delay: 1.06s; }
  .contacts > div:nth-child(4) { animation-delay: 1.14s; }
  .cover-art figcaption { animation-delay: 2.4s; }
  .scroll-cue { opacity: 0; animation: fade 1.2s ease 2.8s both, cue 2.6s ease-in-out 3s infinite; }

  /* the skyline draws itself: ridge first, then water, then the small things */
  .skyline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4,0,.2,1) both; }
  .skyline .ridge { animation-duration: 2.2s; animation-delay: .8s; }
  .skyline .river path { animation-duration: 1.2s; }
  .skyline .river path:nth-child(1) { animation-delay: 1.7s; }
  .skyline .river path:nth-child(2) { animation-delay: 1.95s; }
  .skyline .river path:nth-child(3) { animation-delay: 2.0s; }
  .skyline .river path:nth-child(4) { animation-delay: 2.15s; }
  .skyline .river path:nth-child(5) { animation-delay: 2.3s; }
  .skyline .river path:nth-child(6) { animation-delay: 2.35s; }
  .skyline .trees path, .skyline .cliff path { animation-duration: .7s; animation-delay: 2.4s; }
  .skyline .trees path:nth-child(2) { animation-delay: 2.5s; } .skyline .trees path:nth-child(3) { animation-delay: 2.6s; }
  .skyline .trees path:nth-child(4) { animation-delay: 2.7s; } .skyline .trees path:nth-child(5) { animation-delay: 2.8s; }
  .skyline .sail path { animation-duration: .8s; animation-delay: 2.9s; }

  /* scroll reveals (only once script.js has marked the page) */
  .js .section::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
  .js .section.in::before { transform: scaleX(1); }
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
