/* Ryoak Constructions — cinematic photo-first.
   The work is the design: full-bleed photography (timber-toned
   placeholders until real shots land), oversized display type,
   scroll reveals. */

:root {
  --ink: #0B0805;
  --paper: #F0E6D6;
  --mute: #A09078;
  --amber: #D98E32;
  --amber-2: #C57F27;
  --line: rgba(240, 230, 214, 0.12);
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { scroll-margin-top: 5rem; }

/* ---- Motion (gated on html.js so no-JS visitors see everything) ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(2.5rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Tape-measure eyebrow ---- */
.mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.mark::before {
  content: "";
  width: 2.5rem;
  height: 0.625rem;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0 1px, transparent 1px 8px);
  border-bottom: 1px solid var(--amber);
}

/* ---- Nav: transparent over hero, backdrop after scroll ---- */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.top.scrolled {
  background: rgba(11, 8, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
}

.brand span { color: var(--amber); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--amber);
  color: #14100A;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 0.375rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--amber-2); transform: translateY(-1px); }

.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }

.btn.small { padding: 0.5rem 0.95rem; font-size: 0.9rem; }

.btn.inverse { background: #14100A; color: var(--paper); }

.btn.inverse:hover { background: #241A10; }

/* ---- Hero: full-viewport photo (or placeholder art direction) ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 6rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Placeholder art direction: worksite glow, board joints, grain. */
  background:
    radial-gradient(90rem 45rem at 50% 120%, rgba(217, 142, 50, 0.28), transparent 62%),
    radial-gradient(60rem 30rem at 88% -12%, rgba(240, 230, 214, 0.06), transparent 60%),
    repeating-linear-gradient(92deg, rgba(240, 230, 214, 0.028) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 5px),
    linear-gradient(160deg, #241A10, #150F09 55%, #0B0805);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim keeps the headline legible over any photo. Weighted toward the
   bottom third, where the copy sits, so a bright subject can't wash it out. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(11, 8, 5, 0.60) 0%,
    rgba(11, 8, 5, 0.28) 30%,
    rgba(11, 8, 5, 0.62) 62%,
    rgba(11, 8, 5, 0.92) 100%);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(11, 8, 5, 0.6);
}

.hero h1 em { font-style: normal; color: var(--amber); }

.hero h1 .line {
  display: block;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 .line:nth-child(2) { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.24s; }

.hero .mark { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }

.hero .lead,
.hero .btn { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

.hero .lead {
  font-size: 1.2rem;
  color: var(--paper);
  opacity: 0.92;
  max-width: 44ch;
  margin: 0 0 2.25rem;
  text-shadow: 0 1px 12px rgba(11, 8, 5, 0.7);
}

.cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 1px;
  height: 3.25rem;
  background: linear-gradient(var(--amber), transparent);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(0.75rem); opacity: 0.35; }
}

/* ---- Section headings ---- */
h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 2.5rem;
}

/* ---- Work: edge-to-edge grid, mixed spans ---- */
.work { padding: 6.5rem 0 0.25rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  /* Placeholder: oiled-timber tones + grain */
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 6px),
    linear-gradient(150deg, #2A1D11, #17100A);
}

.shot:nth-child(3n + 2) {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 6px),
    linear-gradient(150deg, #241C12, #140E08);
}

.shot:nth-child(3n) {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 6px),
    linear-gradient(150deg, #2E1F10, #191009);
}

.shot.w4 { grid-column: span 4; aspect-ratio: 16 / 10; }
.shot.w3 { grid-column: span 3; aspect-ratio: 3 / 2; }
.shot.w2 { grid-column: span 2; }

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.shot:hover img { transform: scale(1.04); }

.shot .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 230, 214, 0.3);
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.25rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(11, 8, 5, 0.8));
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Services: showreel index rows ---- */
.services { padding: 7rem 0; }

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rows li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  column-gap: 2rem;
  align-items: baseline;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.rows .num {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--mute);
  transition: color 0.3s ease;
}

.rows li:hover .num { color: var(--amber); }

.rows h3 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.rows p {
  grid-column: 2;
  margin: 0.6rem 0 0;
  color: var(--mute);
  max-width: 52ch;
}

/* ---- CTA band ---- */
.cta {
  background: var(--amber);
  color: #14100A;
  padding: 5.5rem 0;
}

.cta h2 {
  color: #14100A;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.cta p {
  margin: 0 0 2.25rem;
  font-size: 1.15rem;
  max-width: 44ch;
}

/* ---- Footer ---- */
footer { padding: 3rem 0 3.5rem; }

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

footer ul { list-style: none; margin: 0; padding: 0; }

.fine {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.fine li {
  display: inline-block;
  margin-right: 1.5rem;
}

.ig-link {
  display: inline-flex;
  color: var(--mute);
  transition: color 0.15s ease;
}

.ig-link:hover { color: var(--amber); }

.ig-link svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

/* ---- Responsive ---- */
@media (max-width: 52rem) {
  .grid { grid-template-columns: 1fr 1fr; }
  .shot.w4, .shot.w3, .shot.w2 { grid-column: span 1; aspect-ratio: 4 / 5; }
  .rows li { grid-template-columns: 3rem 1fr; column-gap: 1.25rem; }
  .services { padding: 5rem 0; }
}

@media (max-width: 34rem) {
  .grid { grid-template-columns: 1fr; }
  .shot.w4, .shot.w3, .shot.w2 { aspect-ratio: 4 / 3; }
  .hero { padding-bottom: 5rem; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
