/* ---------- Tokens ---------- */
:root{
  --void: #0b0b0b;
  --ink: #171717;
  --paper: #f6f5f1;
  --white: #ffffff;
  --ash: #8a8a86;
  --line: rgba(11,11,11,0.12);
  --line-on-dark: rgba(255,255,255,0.16);

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Caveat", cursive;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }
svg{ display: block; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--void); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 200;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-solid{ background: var(--void); color: var(--white); }
.btn-solid:hover{ background: var(--ink); }
.btn-outline{ border-color: var(--void); color: var(--void); }
.btn-outline:hover{ background: var(--void); color: var(--white); }
.btn-light{ background: var(--white); color: var(--void); }
.btn-light:hover{ background: var(--paper); }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  color: var(--white);
  mix-blend-mode: difference;
}
.logo{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark{ color: currentColor; display: flex; }
.logo-word{
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.site-nav{
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a{ position: relative; padding: 0.2rem 0; }
.site-nav a:not(.nav-cta)::after{
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 2px;
  background: currentColor;
  transition: right 200ms ease;
}
.site-nav a:not(.nav-cta):hover::after{ right: 0; }
.nav-cta{
  border: 1.5px solid currentColor;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  mix-blend-mode: difference;
}
.nav-toggle span{
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

@media (max-width: 860px){
  .nav-toggle{ display: flex; }
  .site-nav{
    position: fixed;
    inset: 0;
    background: var(--void);
    color: var(--white);
    mix-blend-mode: normal;
    isolation: isolate;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.6rem;
    transform: translateY(-100%);
    transition: transform 320ms ease;
  }
  .site-nav.is-open{ transform: translateY(0); }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  background: var(--void);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.hero-visual{
  position: relative;
  background: var(--ink);
  overflow: hidden;
  border-left: 1px solid var(--line-on-dark);
}
.hero-burst{
  position: absolute;
  top: 50%; left: 50%;
  width: min(120%, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-burst svg{ width: 100%; height: 100%; }
.hero-logo{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(34%, 220px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(11,11,11,0.8));
}
.hero-copy{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 5.5rem) var(--gutter);
}
.eyebrow-script{
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--white);
  margin-bottom: 0.25rem;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.hero-word{
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero-lede{
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.78);
}
.hero-actions{
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero .btn-outline{ border-color: var(--white); color: var(--white); }
.hero .btn-outline:hover{ background: var(--white); color: var(--void); }

.scroll-cue{
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span{
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue{
  0%{ opacity: 1; transform: translate(-50%, 0); }
  70%{ opacity: 0; transform: translate(-50%, 14px); }
  100%{ opacity: 0; transform: translate(-50%, 14px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue span{ animation: none; }
}

@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero-visual{
    order: -1;
    min-height: 46vh;
    border-left: none;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .hero-copy{ padding-top: clamp(2.5rem, 8vw, 3.5rem); }
}

/* ---------- About ---------- */
.about{
  --wedge-w: clamp(240px, 30vw, 460px);
  position: relative;
  background: var(--paper);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  overflow: hidden;
}
.about-wedge{
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, var(--wedge-w) 0, calc(var(--wedge-w) * 0.32) 100%, 0 100%);
  background: var(--void);
  z-index: 0;
}
.about-wedge svg{ width: 100%; height: 100%; }
.about-content{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: calc(var(--wedge-w) + var(--gutter));
}
.about-content h2{ font-size: clamp(2rem, 4vw, 2.8rem); }
.about-content .lead{
  margin-top: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
}
.about-content p{ margin-top: 1.1rem; color: var(--ink); max-width: 58ch; }
.about-content p + p{ color: #333; }
.about-facts{
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-facts li{
  padding-left: 1.1rem;
  border-left: 3px solid var(--void);
  font-weight: 600;
}

@media (max-width: 760px){
  .about-wedge{ clip-path: polygon(0 0, 100% 0, 100% 22%, 0 38%); }
  .about-content{ margin-left: 0; margin-top: 38vw; }
}

/* ---------- Section head (shared) ---------- */
.section-head{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.section-head h2{ font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p{ margin-top: 0.75rem; color: var(--ash); font-size: 1.05rem; }
.section-head p a{ color: var(--ink); border-bottom: 1.5px solid var(--ash); }
.section-head p a:hover{ border-color: var(--ink); }

/* ---------- Portfolio ---------- */
.portfolio{ padding: clamp(5rem, 10vw, 8rem) 0; background: var(--white); }
.gallery{
  margin-top: 3rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 14vw;
  gap: 0.6rem;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.gallery-item{
  position: relative;
  grid-row: span 2;
  overflow: hidden;
  margin: 0;
  background: var(--void);
}
.gallery-item.span-tall{ grid-row: span 3; }
.gallery-item.span-wide{ grid-column: span 2; }
.gallery-item a{
  display: block;
  position: relative;
  width: 100%; height: 100%;
}
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item figcaption{
  position: absolute;
  left: 0.9rem; bottom: 0.8rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  background: rgba(11,11,11,0.55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.gallery-item:hover figcaption{ opacity: 1; transform: translateY(0); }

.gallery-cta a{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  transition: background-color 200ms ease;
}
.gallery-cta a:hover{ background: var(--void); }

@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
  .gallery-item.span-wide{ grid-column: span 2; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; grid-auto-rows: 62vw; }
  .gallery-item, .gallery-item.span-tall, .gallery-item.span-wide{ grid-column: span 1; grid-row: span 1; }
}

/* ---------- Services ---------- */
.services{ padding: clamp(5rem, 10vw, 8rem) 0; background: var(--paper); }
.service-grid{
  margin-top: 3rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
  border: 1px solid var(--line);
}
.service{
  background: var(--paper);
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.service-icon{ width: 40px; height: 40px; color: var(--void); }
.service h3{ font-size: 1.15rem; }
.service p{ color: var(--ash); font-size: 0.96rem; }

@media (max-width: 900px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px){
  .service-grid{ grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact{
  position: relative;
  background: var(--void);
  color: var(--white);
  padding: clamp(5rem, 12vw, 8rem) var(--gutter);
  overflow: hidden;
}
.contact-wedge{
  position: absolute;
  top: 0; left: 0;
  width: min(52vw, 560px);
  height: 100%;
  opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.contact-wedge svg{ width: 100%; height: 100%; }
.contact-content{
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-left: auto;
}
.contact-content h2{ font-size: clamp(2.1rem, 4.5vw, 3rem); }
.contact-content .lead{
  margin-top: 1rem;
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 48ch;
}
.contact-list{
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li{
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-list svg{ width: 22px; height: 22px; flex: none; color: var(--white); }
.contact-list a{ border-bottom: 1.5px solid transparent; transition: border-color 180ms ease; }
.contact-list a:hover{ border-color: var(--white); }
.contact-content .btn{ margin-top: 2.4rem; }

@media (max-width: 760px){
  .contact-wedge{ width: 100%; height: 34vw; clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%); }
  .contact-content{ margin-left: 0; margin-top: 30vw; }
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 1.6rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
}
.site-footer a{
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}
.site-footer a:hover{
  color: rgba(255,255,255,0.9);
  border-color: currentColor;
}
