/* Gammage Creative: styles */
/* Base reset (the same one the preview used) */
:root { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: a video editor's desk. Hero pairs a showreel box with a short quote form; the animated timeline sits in the process section. */
:root {
  --bg: #eceff1;
  --surface: #f8f9fa;
  --fg: #12171b;
  --muted: #56626b;
  --line: #c9d0d5;
  --clip: #cfd8de;
  --accent: #d9332a;
  --on-accent: #ffffff;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101417; --surface: #171d21; --fg: #e9edf0; --muted: #96a3ac;
    --line: #2b343a; --clip: #26313a; --accent: #ff5a4d; --on-accent: #1a0604;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101417; --surface: #171d21; --fg: #e9edf0; --muted: #96a3ac;
  --line: #2b343a; --clip: #26313a; --accent: #ff5a4d; --on-accent: #1a0604;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  padding-inline: 20px;
  padding-block: 0 48px;
}
.wrap { max-width: 1080px; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* top bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.bar .name { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -0.01em; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--surface); color: var(--muted);
  
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.bar nav a.pill { background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: 3px; font-weight: 500; }
.bar nav a.pill:hover { color: var(--on-accent); filter: brightness(1.08); text-decoration: none; }
@media (max-width: 560px) { .bar nav a:not(.pill) { display: none; } }

/* hero */
.hero { padding-block: 44px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-copy { min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 6.6vw, 4.9rem);
  line-height: 0.98; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.hero .lede { max-width: 32em; font-size: 1.15rem; color: var(--muted); margin: 20px 0 0; }
.hero .lede strong { color: var(--fg); font-weight: 600; }
.platforms { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* showreel placeholder */
.reel {
  position: relative; margin-top: 28px; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 9;  border-radius: 4px; background: var(--surface);
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.reel .play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; margin: 0 auto 12px;
}
.reel .play::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 18px solid var(--on-accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.reel b { display: block; color: var(--fg); font-weight: 500; }
.reel .tag {
  position: absolute; left: 12px; top: 10px; font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}
.reel .tag.r { left: auto; right: 12px; }

/* quote form */
.form {
  display: grid; gap: 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px;
  scroll-margin-top: 16px;
}
.form h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.form .sub { margin: -8px 0 0; color: var(--muted); font-size: 0.95rem; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.field .opt { opacity: .8; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2356626b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .bad { border-color: var(--accent); }
.more { display: grid; gap: 16px; }
.link {
  justify-self: start; background: none; color: var(--fg); padding: 2px 0; border-radius: 0;
  font-family: var(--mono); font-size: 13px; font-weight: 400;
  border-bottom: 1px solid var(--muted); cursor: pointer;
}
.link:hover { filter: none; border-bottom-color: var(--accent); color: var(--accent); }
.actions { display: grid; gap: 10px; }
.actions button[type="submit"] { padding: 14px 22px; font-size: 14px; width: 100%; }
.err { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.result { border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 16px; display: grid; gap: 12px; }
.result p { margin: 0; font-size: 0.97rem; }
.result pre { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.result button { justify-self: start; }

button {
  font: inherit; font-family: var(--mono); font-size: 13px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 3px; padding: 11px 16px; font-weight: 500;
}
button:hover { filter: brightness(1.08); }

@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* sections */
section { padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h2.title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 32px; text-wrap: balance; max-width: 18em; }

.work { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.frame {
  flex: 1 1 260px; min-width: 0; max-width: 100%;
   border-radius: 4px; background: var(--surface);
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.frame.wide { aspect-ratio: 16 / 9; flex-grow: 2; flex-basis: 380px; }
.frame.tall { aspect-ratio: 9 / 16; flex-grow: 0; flex-basis: 170px; }
.frame.sq { aspect-ratio: 1 / 1; flex-grow: 0; flex-basis: 240px; }
.frame b { display: block; color: var(--fg); font-weight: 500; margin-bottom: 4px; }

.services { display: grid; }
.svc {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.svc p { margin: 0; color: var(--muted); }
.svc .spec { font-family: var(--mono); font-size: 13px; color: var(--fg); line-height: 1.7; }
@media (max-width: 720px) { .svc { grid-template-columns: minmax(0, 1fr); } }

/* timeline graphic */
.tl { margin-bottom: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; overflow: hidden; }
.tl-ruler {
  position: relative; height: 28px; border-bottom: 1px solid var(--line);
  margin-left: 44px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 5%);
  background-size: 100% 40%; background-repeat: no-repeat; background-position: bottom;
}
.tl-ruler span { position: absolute; top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-left: 4px; }
.tl-tracks { position: relative; }
.track { display: flex; align-items: stretch; height: 46px; border-bottom: 1px solid var(--line); }
.track:last-child { border-bottom: 0; }
.track b {
  flex: 0 0 44px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted);
  border-right: 1px solid var(--line);
}
.lane { position: relative; flex: 1; min-width: 0; }
.clip {
  position: absolute; top: 6px; bottom: 6px; border-radius: 2px;
  background: var(--clip); border-left: 3px solid var(--fg);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: clip;
  transition: background-color .15s, color .15s;
}
.clip.hot { background: var(--accent); border-left-color: var(--fg); color: var(--on-accent); }
.clip.on:not(.hot):not(.audio) { background: var(--fg); color: var(--bg); }
.clip.hot.on { filter: brightness(1.12); }
.audio::after { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; bottom: 5px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 40' preserveAspectRatio='none'%3E%3Cpath d='M0.0,17.4 L6.7,23.3 L13.3,15.3 L20.0,24.0 L26.7,15.4 L33.3,25.4 L40.0,15.6 L46.7,26.2 L53.3,12.8 L60.0,28.5 L66.7,14.4 L73.3,27.1 L80.0,13.7 L86.7,31.0 L93.3,9.2 L100.0,26.9 L106.7,6.2 L113.3,34.2 L120.0,7.6 L126.7,32.5 L133.3,10.8 L140.0,28.3 L146.7,7.3 L153.3,29.0 L160.0,9.7 L166.7,30.9 L173.3,10.9 L180.0,33.1 L186.7,7.1 L193.3,36.6 L200.0,6.3 L206.7,34.7 L213.3,6.6 L220.0,34.7 L226.7,7.2 L233.3,31.1 L240.0,3.0 L246.7,36.7 L253.3,5.0 L260.0,33.6 L266.7,9.8 L273.3,29.2 L280.0,10.6 L286.7,27.5 L293.3,8.1 L300.0,29.0 L306.7,8.7 L313.3,28.0 L320.0,9.3 L326.7,29.5 L333.3,15.2 L340.0,25.4 L346.7,12.2 L353.3,25.5 L360.0,13.2 L366.7,24.3 L373.3,17.1 L380.0,23.9 L386.7,16.3 L393.3,22.3 L400.0,17.7 L406.7,23.2 L413.3,14.7 L420.0,25.2 L426.7,16.4 L433.3,24.3 L440.0,15.9 L446.7,24.1 L453.3,12.7 L460.0,25.0 L466.7,13.2 L473.3,26.5 L480.0,14.5 L486.7,28.2 L493.3,14.6 L500.0,28.0 L506.7,14.6 L513.3,26.9 L520.0,14.1 L526.7,26.2 L533.3,10.5 L540.0,28.6 L546.7,13.9 L553.3,28.6 L560.0,14.6 L566.7,26.1 L573.3,12.1 L580.0,26.7 L586.7,15.6 L593.3,27.6 L600.0,15.6 L606.7,24.4 L613.3,14.1 L620.0,24.2 L626.7,16.1 L633.3,23.0 L640.0,17.1 L646.7,23.9 L653.3,17.1 L660.0,23.5 L666.7,17.2 L673.3,22.8 L680.0,16.4 L686.7,22.9 L693.3,16.8 L700.0,23.9 L706.7,17.4 L713.3,22.6 L720.0,15.6 L726.7,24.2 L733.3,17.1 L740.0,22.7 L746.7,16.0 L753.3,24.4 L760.0,17.4 L766.7,24.1 L773.3,16.2 L780.0,23.0 L786.7,17.4 L793.3,22.2 L800.0,17.8 L806.7,24.5 L813.3,16.9 L820.0,24.6 L826.7,16.4 L833.3,25.7 L840.0,14.7 L846.7,24.6 L853.3,15.5 L860.0,27.0 L866.7,15.4 L873.3,25.6 L880.0,12.5 L886.7,29.4 L893.3,11.4 L900.0,27.2 L906.7,8.8 L913.3,27.3 L920.0,13.6 L926.7,28.3 L933.3,10.2 L940.0,27.4 L946.7,11.6 L953.3,30.0 L960.0,8.3 L966.7,28.6 L973.3,9.5 L980.0,34.8 L986.7,4.3 L993.3,33.2 L1000.0,6.5' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 40' preserveAspectRatio='none'%3E%3Cpath d='M0.0,17.4 L6.7,23.3 L13.3,15.3 L20.0,24.0 L26.7,15.4 L33.3,25.4 L40.0,15.6 L46.7,26.2 L53.3,12.8 L60.0,28.5 L66.7,14.4 L73.3,27.1 L80.0,13.7 L86.7,31.0 L93.3,9.2 L100.0,26.9 L106.7,6.2 L113.3,34.2 L120.0,7.6 L126.7,32.5 L133.3,10.8 L140.0,28.3 L146.7,7.3 L153.3,29.0 L160.0,9.7 L166.7,30.9 L173.3,10.9 L180.0,33.1 L186.7,7.1 L193.3,36.6 L200.0,6.3 L206.7,34.7 L213.3,6.6 L220.0,34.7 L226.7,7.2 L233.3,31.1 L240.0,3.0 L246.7,36.7 L253.3,5.0 L260.0,33.6 L266.7,9.8 L273.3,29.2 L280.0,10.6 L286.7,27.5 L293.3,8.1 L300.0,29.0 L306.7,8.7 L313.3,28.0 L320.0,9.3 L326.7,29.5 L333.3,15.2 L340.0,25.4 L346.7,12.2 L353.3,25.5 L360.0,13.2 L366.7,24.3 L373.3,17.1 L380.0,23.9 L386.7,16.3 L393.3,22.3 L400.0,17.7 L406.7,23.2 L413.3,14.7 L420.0,25.2 L426.7,16.4 L433.3,24.3 L440.0,15.9 L446.7,24.1 L453.3,12.7 L460.0,25.0 L466.7,13.2 L473.3,26.5 L480.0,14.5 L486.7,28.2 L493.3,14.6 L500.0,28.0 L506.7,14.6 L513.3,26.9 L520.0,14.1 L526.7,26.2 L533.3,10.5 L540.0,28.6 L546.7,13.9 L553.3,28.6 L560.0,14.6 L566.7,26.1 L573.3,12.1 L580.0,26.7 L586.7,15.6 L593.3,27.6 L600.0,15.6 L606.7,24.4 L613.3,14.1 L620.0,24.2 L626.7,16.1 L633.3,23.0 L640.0,17.1 L646.7,23.9 L653.3,17.1 L660.0,23.5 L666.7,17.2 L673.3,22.8 L680.0,16.4 L686.7,22.9 L693.3,16.8 L700.0,23.9 L706.7,17.4 L713.3,22.6 L720.0,15.6 L726.7,24.2 L733.3,17.1 L740.0,22.7 L746.7,16.0 L753.3,24.4 L760.0,17.4 L766.7,24.1 L773.3,16.2 L780.0,23.0 L786.7,17.4 L793.3,22.2 L800.0,17.8 L806.7,24.5 L813.3,16.9 L820.0,24.6 L826.7,16.4 L833.3,25.7 L840.0,14.7 L846.7,24.6 L853.3,15.5 L860.0,27.0 L866.7,15.4 L873.3,25.6 L880.0,12.5 L886.7,29.4 L893.3,11.4 L900.0,27.2 L906.7,8.8 L913.3,27.3 L920.0,13.6 L926.7,28.3 L933.3,10.2 L940.0,27.4 L946.7,11.6 L953.3,30.0 L960.0,8.3 L966.7,28.6 L973.3,9.5 L980.0,34.8 L986.7,4.3 L993.3,33.2 L1000.0,6.5' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.playhead {
  position: absolute; top: 0; bottom: 0; left: calc(44px + (100% - 44px) * var(--p, 0.62));
  width: 2px; background: var(--accent); pointer-events: none;
}
.playhead::before {
  content: ""; position: absolute; top: -1px; left: -6px; width: 14px; height: 12px;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.tl-foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.tl-foot .tc { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { padding: 20px 20px 0 0; border-top: 2px solid var(--fg); position: relative; }
.steps li::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 8px;
}
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* closing contact */
.closing { display: grid; gap: 20px; justify-items: start; }
.closing h2.title { margin: 0; }
.closing p { margin: 0; color: var(--muted); max-width: 32em; }
.closing p.label { margin: 0; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 15px; }
.mail code { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; border-radius: 3px; user-select: all; overflow-wrap: anywhere; min-width: 0; }

/* motion: staggered rise on load for the hero, fade-in on scroll for everything below */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bar { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation: rise .8s cubic-bezier(.2,.7,.2,1) .08s both; }
.hero .lede { animation: rise .8s cubic-bezier(.2,.7,.2,1) .18s both; }
.reel { animation: rise .8s cubic-bezier(.2,.7,.2,1) .3s both; }
.hero .form { animation: rise .8s cubic-bezier(.2,.7,.2,1) .42s both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bar, .hero h1, .hero .lede, .reel, .hero .form { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

footer { padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
