/* ============================================================
   RAWFORM — tactile neo-brutalism
   tomato #FF4D00 · cream #FFF3E4 · cobalt #1D3FBB · black #141414
   ============================================================ */

:root {
  --tomato: #FF4D00;
  --cream: #FFF3E4;
  --cobalt: #1D3FBB;
  --black: #141414;
  --line: 1px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --gutter: clamp(16px, 3vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--black);
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--tomato); color: var(--cream); }

/* scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); border-left: var(--line); }
::-webkit-scrollbar-thumb { background: var(--black); border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--tomato); }

/* ---------- exposed grid overlay ---------- */
.gridlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 1680px;
  margin-inline: auto;
  opacity: .55;
}
.gridlines span { border-left: 1px solid rgba(20,20,20,.14); }
.gridlines span:last-child { border-right: 1px solid rgba(20,20,20,.14); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.86;
}

.idx {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: .12em;
}

/* ---------- header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--cream);
  border-bottom: var(--line);
  height: 58px;
}
.logo {
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  border-right: var(--line);
}
.logo em { font-style: normal; color: var(--tomato); }
nav { display: flex; }
nav a {
  display: flex;
  align-items: center;
  padding: 0 clamp(14px, 2vw, 28px);
  border-left: var(--line);
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
nav a:hover { background: var(--black); color: var(--cream); }
nav a.nav-cta { background: var(--tomato); color: var(--cream); }
nav a.nav-cta:hover { background: var(--cobalt); }

/* ---------- generic section chrome ---------- */
section { position: relative; border-bottom: var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter) 18px;
  border-bottom: var(--line);
}
.section-head h2 { font-size: clamp(30px, 4.5vw, 58px); }
.section-head .idx { color: var(--tomato); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 58px;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-meta .idx { color: var(--tomato); }
.hero-manifesto {
  max-width: 620px;
  padding: 0 var(--gutter) 34px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}
.hero-manifesto strong { color: var(--cobalt); font-weight: 700; }
.hero-title {
  font-size: 16.5vw;
  letter-spacing: -0.045em;
  line-height: 0.78;
  white-space: nowrap;
  margin-left: -0.06em;
  margin-bottom: -0.115em; /* crop descender edge by viewport bottom */
  user-select: none;
}
.hero-title .o { color: var(--tomato); }
.hero-cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 var(--gutter) 44px;
}

/* ---------- buttons (magnetic) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--tomato);
  color: var(--cream);
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  border: var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  will-change: transform;
  transition: background .15s;
}
.btn:hover { background: var(--cobalt); }
.btn.btn-ghost { background: var(--cream); color: var(--black); }
.btn.btn-ghost:hover { background: var(--black); color: var(--cream); }
.btn .arr { font-size: 1.15em; line-height: 1; }

/* ---------- marquee ---------- */
.marquee {
  border-bottom: var(--line);
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
  padding: 18px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.marquee-chunk {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(26px, 3.4vw, 46px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.marquee-chunk .sep { color: var(--tomato); margin: 0 .55em; }

/* ---------- services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.svc {
  border-right: var(--line);
  padding: clamp(24px, 3vw, 44px) var(--gutter) clamp(28px, 3vw, 48px);
  position: relative;
  background: var(--cream);
  transition: background .15s ease;
}
.services-grid .svc:nth-child(3n) { border-right: none; }
.services-grid .svc:nth-child(n+4) { border-top: var(--line); }
.svc .idx { display: block; color: var(--tomato); margin-bottom: 34px; }
.svc h3 { font-size: clamp(22px, 2.1vw, 32px); margin-bottom: 14px; }
.svc p { font-size: 15.5px; max-width: 34ch; color: rgba(20,20,20,.82); }
.svc:hover { background: #FFE9D2; }
.svc:hover .idx { color: var(--cobalt); }

/* ---------- work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(36px, 5vw, 72px) var(--gutter);
}
.card {
  border: var(--line);
  box-shadow: var(--shadow);
  background: var(--cream);
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: -6px 6px 0 var(--black); transform: translate(3px, 0); }
.card:nth-child(even):hover { box-shadow: 6px -6px 0 var(--black); transform: translate(0, 3px); }
.card-block {
  height: clamp(190px, 24vw, 320px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: var(--line);
  position: relative;
  overflow: hidden;
}
.card-block .big {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(52px, 7vw, 110px);
  line-height: .8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: .95;
}
.card-block .arr {
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1;
  transition: transform .2s ease;
}
.card:hover .card-block .arr { transform: translate(6px, -6px); }
.bg-tomato { background: var(--tomato); color: var(--cream); }
.bg-cobalt { background: var(--cobalt); color: var(--cream); }
.bg-black  { background: var(--black);  color: var(--cream); }
.bg-cream  { background: var(--cream);  color: var(--black); }
.card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 22px;
}
.card-info h3 { font-size: 19px; letter-spacing: -0.01em; }
.card-info .tag {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cobalt);
  white-space: nowrap;
}

/* ---------- team table ---------- */
.team-table { width: 100%; border-collapse: collapse; }
.team-table tr { border-bottom: var(--line); transition: background .12s; }
.team-table tr:last-child { border-bottom: none; }
.team-table td { padding: 20px var(--gutter); vertical-align: middle; }
.team-table .t-idx { width: 72px; font-weight: 700; color: var(--tomato); font-size: 14px; letter-spacing: .1em; }
.team-table .t-name { font-family: "Archivo Black", sans-serif; font-size: clamp(19px, 2vw, 30px); text-transform: uppercase; letter-spacing: -0.02em; }
.team-table .t-role { font-weight: 600; font-size: 14.5px; text-transform: uppercase; letter-spacing: .07em; color: rgba(20,20,20,.7); }
.team-table .t-fact { font-size: 14.5px; color: rgba(20,20,20,.62); text-align: right; }
.team-table tr:hover { background: var(--black); }
.team-table tr:hover td { color: var(--cream); }
.team-table tr:hover .t-idx { color: var(--tomato); }
.team-table tr:hover .t-role, .team-table tr:hover .t-fact { color: rgba(255,243,228,.75); }

/* ---------- contact slab ---------- */
.contact {
  background: var(--cobalt);
  color: var(--cream);
  padding: clamp(60px, 9vw, 130px) var(--gutter);
  text-align: left;
}
.contact .idx { color: var(--cream); opacity: .7; display: block; margin-bottom: 26px; }
.contact h2 {
  font-size: clamp(44px, 8.5vw, 128px);
  letter-spacing: -0.04em;
  margin-bottom: 38px;
  max-width: 12ch;
}
.contact h2 .u { color: var(--tomato); }
.contact .mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  color: var(--black);
  border: 1px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  padding: 20px 34px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(17px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  will-change: transform;
}
.contact .mail:hover { background: var(--tomato); color: var(--cream); }
.contact .fine {
  margin-top: 34px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
}

/* ---------- footer ---------- */
footer {
  background: var(--black);
  color: var(--cream);
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,243,228,.25);
}
.foot-cell { padding: 34px var(--gutter); border-right: 1px solid rgba(255,243,228,.25); }
.foot-cell:last-child { border-right: none; }
.foot-cell h4 {
  font-family: "Archivo Black", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tomato);
  margin-bottom: 14px;
}
.foot-cell p { opacity: .8; max-width: 42ch; }
.foot-cell a { color: var(--cream); text-decoration: none; display: block; padding: 3px 0; opacity: .85; }
.foot-cell a:hover { color: var(--tomato); opacity: 1; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--gutter);
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .8;
}
.foot-base a { color: var(--cream); }
.foot-base a:hover { color: var(--tomato); }

/* ---------- hero stamp ---------- */
.hero-stamp {
  position: absolute;
  top: calc(58px + clamp(30px, 6vh, 70px));
  right: var(--gutter);
  width: clamp(110px, 13vw, 190px);
  aspect-ratio: 1;
  border: var(--line);
  box-shadow: var(--shadow);
  background: var(--cobalt);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.hero-stamp .glyph {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  will-change: transform;
}
.hero-stamp .ring {
  position: absolute;
  inset: -34px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--black);
}
.hero-tags {
  position: absolute;
  top: calc(58px + clamp(30px, 6vh, 70px));
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.hero-tags span {
  border: var(--line);
  background: var(--cream);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  box-shadow: 3px 3px 0 var(--black);
}
.hero-tags span:nth-child(2) { margin-left: 26px; background: var(--tomato); color: var(--cream); }
.hero-tags span:nth-child(3) { margin-left: 52px; background: var(--black); color: var(--cream); }

/* ---------- guide-specific ---------- */
.guide-main { padding-top: 58px; }
.guide-section { padding: clamp(36px, 5vw, 64px) var(--gutter); border-bottom: var(--line); }
.guide-section h2 { font-size: clamp(26px, 3.4vw, 44px); margin-bottom: 18px; }
.guide-section h2 .idx-inline { color: var(--tomato); font-family: "Work Sans", sans-serif; font-weight: 700; font-size: .45em; vertical-align: super; letter-spacing: .1em; margin-right: 10px; }
.guide-section p { max-width: 68ch; margin-bottom: 14px; }
.guide-section ul { max-width: 68ch; margin: 0 0 14px 1.2em; }
.guide-section li { margin-bottom: 8px; }
pre.code {
  background: var(--black);
  color: var(--cream);
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 22px 0 26px;
  max-width: 860px;
}
pre.code .c { color: rgba(255,243,228,.5); }
pre.code .k { color: var(--tomato); }
pre.code .s { color: #7FA0FF; }
.shots-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.shots-strip figure { border: var(--line); box-shadow: var(--shadow); background: var(--cream); }
.shots-strip img { width: 100%; display: block; border-bottom: var(--line); }
.shots-strip figcaption { padding: 10px 14px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .svc:nth-child(3n) { border-right: var(--line); }
  .services-grid .svc:nth-child(2n) { border-right: none; }
  .services-grid .svc:nth-child(n+3) { border-top: var(--line); }
  .work-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cell { border-right: none; border-bottom: 1px solid rgba(255,243,228,.25); }
  .foot-cell:last-child { border-bottom: none; }
  .gridlines { grid-template-columns: repeat(3, 1fr); }
  .team-table .t-fact { display: none; }
  .shots-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav a { padding: 0 12px; font-size: 12px; }
  nav a.nav-hide-sm { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .svc { border-right: none !important; }
  .services-grid .svc:nth-child(n+2) { border-top: var(--line); }
  .hero-title { font-size: 19vw; }
  .team-table .t-role { display: none; }
  .hero-meta { flex-direction: column; gap: 6px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { transform: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
