/* =========================================================
   Halden Studio — Premium video-hero landing (portfolio sample)
   Author: Victor Lab
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #0a0907;
  --bg-2: #15110d;
  --ink: #f3ece0;
  --ink-2: #b9b0a1;
  --ink-3: #6b6358;
  --line: rgba(243, 236, 224, 0.14);
  --line-strong: rgba(243, 236, 224, 0.32);
  --accent: #ff5b22;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --display: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --serif: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: keep-all;
  line-break: strict;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button { font: inherit; cursor: pointer; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ------- Layout helpers ------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
  font-weight: 500;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--pad);
  margin: 0 auto 40px;
  max-width: var(--max);
}

.section-head h2 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

/* =========================================================
   Top nav
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  background: linear-gradient(to bottom, rgba(10,9,7,0.7) 0%, rgba(10,9,7,0.4) 60%, rgba(10,9,7,0) 100%);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10,9,7,0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 91, 34, 0.65);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 10px 18px !important;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 110px var(--pad) 40px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster { z-index: 0; }
.hero-video { z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 75%),
    linear-gradient(to bottom, rgba(10,9,7,0.45) 0%, rgba(10,9,7,0.25) 35%, rgba(10,9,7,0.85) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* slow ken-burns on the video for cinematic feel */
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}
.hero-video {
  animation: kenburns 22s ease-in-out infinite alternate;
  filter: saturate(0.92) contrast(1.05);
  will-change: transform;
  transform: translateZ(0);
}

.hero-media {
  contain: paint;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; }
}

.hero-meta {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 16px;
}

.hero-meta span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1100px;
  margin-top: auto;
  margin-bottom: 56px;
}

.hero-content .eyebrow { color: var(--ink-2); }

.hero-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(44px, 8.4vw, 140px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 14px 0 24px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--ink-2);
  letter-spacing: 0.06em;
  margin: 0 0 32px;
  font-weight: 400;
}

.hero-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 8px; bottom: 0.08em;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: ulSweep 2.6s 0.6s ease-out both;
}

@keyframes ulSweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(243, 236, 224, 0.06);
  transform: translateY(-1px);
}

.hero-foot {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: 12px;
  color: var(--ink-2);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-scroll-line {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.hero-availability {
  text-align: right;
}
.hero-availability strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  margin-top: 2px;
}

/* =========================================================
   Marquee
   ========================================================= */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg);
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  font-family: var(--sans);
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 200;
  letter-spacing: -0.02em;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  color: var(--ink);
}

.marquee-track .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Work
   ========================================================= */

.work {
  padding: 96px 0;
}

.work-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pad);
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
}

.work-item {
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}

.work-item.lg { grid-column: span 12; }
.work-item.md { grid-column: span 7; }
.work-item.sm { grid-column: span 5; }

@media (max-width: 900px) {
  .work-item,
  .work-item.lg,
  .work-item.md,
  .work-item.sm { grid-column: span 12; }
}

.work-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
  cursor: pointer;
}

.work-item.lg .work-cover { aspect-ratio: 21 / 9; }
.work-item.sm .work-cover { aspect-ratio: 4 / 3; }

.work-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
  filter: saturate(0.85) contrast(1.05);
  z-index: 0;
}

.work-item:hover .work-cover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.05);
}

.work-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(8,6,4,0.85) 100%),
    linear-gradient(to top,    rgba(0,0,0,0) 75%, rgba(8,6,4,0.45) 100%);
}

.work-tint.warm  { box-shadow: inset 0 0 0 9999px rgba(60, 25, 8, 0.18); }
.work-tint.cool  { box-shadow: inset 0 0 0 9999px rgba(8, 18, 36, 0.22); }
.work-tint.sepia { box-shadow: inset 0 0 0 9999px rgba(46, 32, 16, 0.22); }
.work-tint.green { box-shadow: inset 0 0 0 9999px rgba(8, 28, 22, 0.20); }
.work-tint.violet{ box-shadow: inset 0 0 0 9999px rgba(28, 12, 32, 0.22); }

.work-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.work-card-top,
.work-card-bottom {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  padding: clamp(16px, 2vw, 26px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: var(--ink);
}

.work-card-top {
  top: 0;
  align-items: flex-start;
}

.work-card-bottom {
  bottom: 0;
}

.work-tag {
  display: inline-flex;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 9, 7, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 11px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 500;
}

.work-meta-time {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.work-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  text-wrap: balance;
}

.work-item.lg .work-title { font-size: clamp(28px, 3.2vw, 44px); }

.work-client {
  font-size: 13px;
  color: rgba(243, 236, 224, 0.72);
  margin: 0;
  letter-spacing: 0.01em;
}

.work-item .arrow {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.3s ease, color 0.3s ease;
  align-self: flex-end;
}

.work-item:hover .arrow {
  transform: translate(4px, -4px);
  color: var(--ink);
}

/* =========================================================
   Services / capabilities
   ========================================================= */

.services {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 800px 600px at 100% 0%, rgba(255, 91, 34, 0.06), rgba(0,0,0,0)) ,
    var(--bg);
}

.services-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

@media (max-width: 900px) {
  .services-inner { grid-template-columns: 1fr; gap: 36px; }
}

.services-title {
  align-self: flex-start;
}

.services-title h2 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 8px 0 18px;
}

.services-title h2 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}

.services-title p {
  color: var(--ink-2);
  max-width: 32ch;
  line-height: 1.55;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 28px 4px;
  border-top: 1px solid var(--line);
  transition: padding 0.3s ease;
}

.services-list li:last-child { border-bottom: 1px solid var(--line); }

.services-list li:hover { padding-left: 12px; }

.services-list .num {
  font-family: var(--sans);
  font-style: normal;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.services-list h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.services-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}

.services-list .price {
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================================================
   Process
   ========================================================= */

.process {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.process-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.process-step .num {
  font-family: var(--sans);
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.process-step p {
  color: var(--ink-2);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
  padding: 120px 0 96px;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 91, 34, 0.10), rgba(0,0,0,0)),
    var(--bg);
}

.contact .eyebrow { justify-content: center; display: inline-block; }

.contact h2 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(40px, 7.6vw, 120px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 14px 0 40px;
}

.contact h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  padding: 22px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-mail:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer a:hover { color: var(--ink); }

/* =========================================================
   Reveal animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-scroll-line::after { animation: none; }
}
