:root {
  --ink: #0e0e0e;
  --accent: #e8590c;
  --accent-dark: #c44a08;
  --placeholder: #f0efec;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: 1440px; margin: 0 auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 52px; }
.nav-logo { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--ink); text-decoration: none; }
.nav-logo img { display: block; width: auto; }
.nav-logo-full { height: 36px; }
.nav-logo-mark { display: none !important; height: 32px; }
.nav-links { display: flex; gap: 30px; font: 600 12px "Archivo", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.nav-links a { color: rgba(0, 0, 0, .62); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 52px 56px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb1 { top: -160px; right: 6%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(232, 89, 12, .28) 0%, rgba(232, 89, 12, 0) 65%); filter: blur(10px); animation: orb1 26s ease-in-out infinite; }
.orb2 { bottom: -220px; right: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(232, 89, 12, .16) 0%, rgba(232, 89, 12, 0) 65%); filter: blur(14px); animation: orb2 34s ease-in-out infinite; }
@keyframes orb1 { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(280px, 90px) scale(1.25); } 66% { transform: translate(90px, -60px) scale(.9); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes orb2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-240px, 70px) scale(1.35); } 100% { transform: translate(0, 0) scale(1); } }
.hero h1 { position: relative; margin: 0; font: 800 clamp(80px, 13vw, 164px)/.86 "Archivo", sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.hero h1 .dot { color: var(--accent); }
.rise-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.rise { display: block; animation: rise .9s cubic-bezier(.16, .8, .26, 1) both; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .22s; }
@keyframes rise { from { transform: translateY(112%); } to { transform: translateY(0); } }
.hero-sub { position: relative; display: flex; justify-content: space-between; align-items: flex-end; margin-top: 36px; gap: 32px; flex-wrap: wrap; animation: fadeup .8s .55s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-sub p { margin: 0; font: 400 19px/1.5 "Instrument Sans", sans-serif; color: rgba(0, 0, 0, .64); max-width: 42ch; }
.hero-cta { flex: none; font: 600 13px "Archivo", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.hero-cta:hover { color: var(--accent); }

/* ---------- Process band ---------- */
.process { background: var(--ink); padding: 40px 52px; }
.pstep { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pstep:last-child { border-bottom: none; }
.pstep-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 26px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.pword { font: 800 clamp(44px, 7vw, 88px)/1 "Archivo", sans-serif; letter-spacing: -.03em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .8); transition: all .35s ease; }
.parrow { font: 400 34px "Archivo", sans-serif; color: rgba(255, 255, 255, .55); transition: all .35s ease; }
.pdesc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease; }
.pdesc-inner { overflow: hidden; min-height: 0; }
.pdesc-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 30px; }
.pstep:hover .pdesc,
.pstep.open .pdesc { grid-template-rows: 1fr; opacity: 1; }
.pstep:hover .pword,
.pstep.open .pword { color: var(--accent); -webkit-text-stroke: 1.5px var(--accent); }
.pstep:hover .parrow,
.pstep.open .parrow { color: var(--accent); transform: rotate(180deg); }
.step-label { font: 600 12px "Archivo", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step-text { font: 400 16px/1.6 "Instrument Sans", sans-serif; color: rgba(255, 255, 255, .75); max-width: 52ch; }

/* ---------- Portfolio ---------- */
.work { padding: 24px 52px 72px; scroll-margin-top: 24px; }
.project { padding: 38px 0; border-bottom: 2px solid rgba(0, 0, 0, .1); }
.project:first-of-type { border-bottom: 2px solid var(--ink); }
.project-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.project-title { display: flex; align-items: baseline; gap: 26px; }
.project-num { font: 600 14px "Archivo", sans-serif; color: var(--accent); }
.project-name { margin: 0; font: 700 44px "Archivo", sans-serif; letter-spacing: -.02em; }
.project-cat { font: 400 14px "Instrument Sans", sans-serif; color: rgba(0, 0, 0, .62); }
.shot { margin-top: 26px; border-radius: 6px; overflow: hidden; background: var(--placeholder); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.shot:hover img { transform: scale(1.03); }
.shot.wide { aspect-ratio: 16/9; }
.shot-solstice { aspect-ratio: auto !important; }
.shot-solstice img { height: auto; object-fit: contain; }
.shot-solstice:hover img { transform: none; }
.two-col { margin-top: 26px; display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.two-col .shot { margin-top: 0; }
.shot.contain img { object-fit: contain; }
.shot-dark { background: #10140f; }
.shot-warm { background: #efe9df; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-ready.on { opacity: 1; transform: none; }

/* ---------- About + Contact ---------- */
.dark { background: var(--ink); color: #fff; padding: 88px 52px; }
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 64px; scroll-margin-top: 24px; }
.about-left { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.about-label { margin: 0; font: 600 12px "Archivo", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.portrait-block { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.portrait { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: #1c1c1c; border: 1px solid rgba(255, 255, 255, .15); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-name { font: 500 15px "Instrument Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); text-align: center; }
.about-copy { padding-top: 44px; }
.about p { margin: 0; font: 400 23px/1.5 "Instrument Sans", sans-serif; color: rgba(255, 255, 255, .88); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.badge { padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px; font: 600 12px "Archivo", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 64px; padding-top: 64px; scroll-margin-top: 24px; }
.contact h2 { margin: 0; font: 800 clamp(48px, 10vw, 76px)/.9 "Archivo", sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.contact h2 .dot { color: var(--accent); }
.mail-btn { display: inline-block; margin-top: 36px; padding: 16px 30px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 4px; font: 600 14px "Archivo", sans-serif; letter-spacing: .02em; }
.mail-btn:hover { background: var(--accent-dark); color: #fff; }
.form { position: relative; display: flex; flex-direction: column; justify-self: end; width: 100%; max-width: 520px; gap: 14px; }
.form input,
.form textarea { padding: 16px 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; font: 400 15px "Instrument Sans", sans-serif; color: #fff; resize: none; }
.form input::placeholder,
.form textarea::placeholder { color: rgba(255, 255, 255, .58); }
.form input:focus,
.form textarea:focus { border-color: var(--accent); }
.form button { padding: 16px; background: #fff; color: var(--ink); border: none; border-radius: 6px; font: 600 14px "Archivo", sans-serif; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.form button:hover { background: #eee; }
.form button:disabled { cursor: wait; opacity: .72; }
.form-status { margin: 0; font: 500 13px/1.45 "Instrument Sans", sans-serif; color: rgba(255, 255, 255, .82); }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer { display: flex; justify-content: space-between; margin-top: 88px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); font: 400 13px "Instrument Sans", sans-serif; color: rgba(255, 255, 255, .62); }

/* ---------- Success page ---------- */
.success-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); color: #fff; }
.success-card { width: min(680px, 100%); }
.success-card h1 { margin: 0; font: 800 clamp(56px, 12vw, 112px)/.9 "Archivo", sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.success-card h1 span { color: var(--accent); }
.success-card p { margin: 28px 0 0; max-width: 42ch; font: 400 19px/1.5 "Instrument Sans", sans-serif; color: rgba(255, 255, 255, .82); }
.success-card a { display: inline-block; margin-top: 32px; padding-bottom: 4px; border-bottom: 2px solid var(--accent); color: #fff; font: 600 13px "Archivo", sans-serif; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav,
  .hero,
  .process,
  .work,
  .dark { padding-left: 24px; padding-right: 24px; }
  .two-col,
  .about,
  .contact { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .form { justify-self: stretch; max-width: none; }
  .project-name { font-size: 32px; }
}

@media (max-width: 600px) {
  .nav { gap: 18px; padding-top: 22px; padding-bottom: 22px; }
  .nav-logo-full { display: none !important; }
  .nav-logo-mark { display: block !important; }
  .nav-links { gap: 18px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(54px, 20vw, 76px); }
  .hero-sub p { font-size: 17px; }
  .project-title { gap: 14px; }
  .project-name { font-size: 28px; }
  .footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 360px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: clamp(52px, 19vw, 66px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal,
  .reveal.reveal-ready { opacity: 1; transform: none; }
  .shot:hover img { transform: none; }
}
