/* ==========================================================================
   NAS CONTRACTING INC — "The Drawing Set"
   Palette: vellum paper, blue-black ink, drafting blue rules, surveyor orange
   Type: Big Shoulders Display / Schibsted Grotesk / Space Mono
   ========================================================================== */

:root {
  --vellum:   #EEF0EA;
  --vellum-2: #E3E7DE;
  --paper:    #FBFBF7;
  --ink:      #111C26;
  --graphite: #41505E;
  --blue:     #33608C;
  --rule:     rgba(51, 96, 140, .28);
  --orange:   #E8541E;
  --orange-d: #C74312;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body:    "Schibsted Grotesk", "Segoe UI", sans-serif;
  --mono:    "Space Mono", "Consolas", monospace;

  --shadow: 6px 6px 0 rgba(17, 28, 38, .14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--vellum);
  /* graph-paper field */
  background-image:
    linear-gradient(rgba(51, 96, 140, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 96, 140, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--paper); }

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

a { color: inherit; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- type roles ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.2rem, 11vw, 8.8rem);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.display-2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: .95;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 22px;
}

.lede {
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 46ch;
  margin: 26px 0 30px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn-solid {
  background: var(--orange);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-solid:hover { background: var(--orange-d); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(17,28,38,.14); }
.btn-solid:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(17,28,38,.14); }

.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--vellum); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover { background: var(--vellum-2); }

.btn-full { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vellum);
  border-bottom: 2px solid var(--ink);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.stamp {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 8px 4px;
  letter-spacing: .02em;
}

.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  line-height: 1.25;
}
.brand-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: .62rem;
  color: var(--blue);
}

.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover { border-bottom-color: var(--orange); }

.btn-top { padding: 10px 16px; box-shadow: none; white-space: nowrap; }
.btn-top:hover { transform: none; box-shadow: none; }

/* ---------- hero ---------- */

.hero { padding: clamp(60px, 9vh, 110px) 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: start;
}

/* dimension line — the signature */
.dim {
  position: relative;
  height: 26px;
  margin-top: 30px;
  border-bottom: 0;
}
.dim::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 12px;
  height: 1.5px;
  background: var(--blue);
}
/* end ticks */
.dim::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 17px;
  border-left: 1.5px solid var(--blue);
  border-right: 1.5px solid var(--blue);
}
.dim-label {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translate(-50%, -50%);
  background: var(--vellum);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  white-space: nowrap;
  z-index: 1;
}

/* ---------- title block card ---------- */

.titleblock {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow);
}

.tb-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 2px solid var(--ink);
}

.stamp-lg { font-size: 1.7rem; padding: 8px 10px 5px; }

.tb-firm {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  line-height: 1.3;
}
.tb-firm em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: .65rem;
  color: var(--blue);
  letter-spacing: .12em;
}

.tb-rows { display: block; }

.tb-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid var(--rule);
}
.tb-row dt {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--blue);
  padding: 10px 0 10px 16px;
  border-right: 1px solid var(--rule);
}
.tb-row dd {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 10px 16px;
}

.tb-phone {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  text-align: center;
  text-decoration: none;
  padding: 14px 10px 10px;
  background: var(--ink);
  color: var(--vellum);
  letter-spacing: .03em;
}
.tb-phone:hover { color: var(--orange); }

/* ---------- ticker ---------- */

.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 12px 0;
  animation: tick 36s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
}
.ticker-track i {
  width: 9px; height: 9px;
  background: var(--orange);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
  flex: none;
}

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

/* ---------- sections ---------- */

.section { padding: 96px 0; }

.section-tint {
  background: var(--vellum-2);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.sheethead {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.sheettab {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--paper);
  background: var(--blue);
  border: 2px solid var(--ink);
  padding: 5px 10px 4px;
  white-space: nowrap;
}

/* ---------- scope cards ---------- */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 26px 24px 22px;
  position: relative;
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}

.bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--vellum);
  margin-bottom: 18px;
  line-height: 1;
}
.bubble b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  border-bottom: 1.5px solid var(--ink);
  padding: 0 6px 2px;
}
.bubble i {
  font-family: var(--mono);
  font-style: normal;
  font-size: .5rem;
  letter-spacing: .06em;
  padding-top: 3px;
  color: var(--blue);
}
.card:hover .bubble { background: var(--orange); }

.card h3, .seq h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.card p { color: var(--graphite); font-size: .95rem; }

.card .tagline {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blue);
  margin-top: 16px;
}

/* ---------- work gallery ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shot {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
  filter: saturate(.94);
}
.shot figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 12px 14px;
}
.shot figcaption b {
  width: 10px; height: 10px;
  background: var(--orange);
  border: 1.5px solid var(--ink);
  flex: none;
}

.worknote {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--graphite);
  margin-top: 26px;
}

/* ---------- sequence ---------- */

.seq-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.seq-photo {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.seq-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
  filter: saturate(.94);
}
.seq-photo figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 12px 14px;
}
.seq-photo figcaption b {
  width: 10px; height: 10px;
  background: var(--orange);
  border: 1.5px solid var(--ink);
  flex: none;
}

.seq {
  list-style: none;
  position: relative;
}
/* the plumb line connecting steps */
.seq::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: var(--blue);
}

.seq li {
  display: flex;
  gap: 22px;
  padding-bottom: 34px;
  position: relative;
}
.seq li:last-child { padding-bottom: 0; }

.bubble-sm {
  width: 46px; height: 46px;
  flex: none;
  margin-bottom: 0;
  background: var(--vellum);
  position: relative;
  z-index: 1;
}
.section-tint .bubble-sm { background: var(--vellum-2); }

.seq p { color: var(--graphite); font-size: .97rem; max-width: 52ch; }

/* ---------- trust strip ---------- */

.strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-top: 72px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.strip li {
  flex: 1 1 200px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid var(--rule);
}
.strip li:last-child { border-right: 0; }
.strip li::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--orange);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
  margin-right: 10px;
}

/* ---------- contact / ink sheet ---------- */

.section-ink {
  background: var(--ink);
  color: var(--vellum);
  background-image:
    linear-gradient(rgba(238, 240, 234, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 234, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.sheethead-inv .sheettab { background: var(--orange); color: var(--ink); border-color: var(--vellum); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-lede {
  font-size: 1.15rem;
  color: rgba(238, 240, 234, .82);
  max-width: 40ch;
  margin-bottom: 28px;
}

.bigphone {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: .92;
  text-decoration: none;
  color: var(--vellum);
  margin-bottom: 34px;
}
.bigphone:hover { color: var(--orange); }

.section-ink .btn { border-color: var(--vellum); }
.section-ink .btn-solid { box-shadow: 6px 6px 0 rgba(238, 240, 234, .16); }

.contact-note {
  font-family: var(--mono);
  font-size: .74rem;
  color: rgba(238, 240, 234, .62);
  margin-top: 26px;
  max-width: 46ch;
}

/* quote composer */
.quote {
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--vellum);
  box-shadow: 8px 8px 0 rgba(238, 240, 234, .16);
  padding: 28px 26px;
}

.quote-head {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 18px;
}

.quote label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 16px 0 6px;
}
.quote label:first-of-type { margin-top: 0; }

.quote input,
.quote textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--vellum);
  border: 2px solid var(--ink);
  padding: 11px 12px;
  resize: vertical;
}
.quote input::placeholder,
.quote textarea::placeholder { color: rgba(65, 80, 94, .55); }

.quote .btn-full { margin-top: 22px; }

.quote-note {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--graphite);
  margin-top: 14px;
  line-height: 1.5;
}

/* ---------- footer title block ---------- */

.footerblock {
  border-top: 2.5px solid var(--ink);
  background: var(--paper);
}

.fb-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.2fr .6fr .7fr;
}

.fb-cell {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.fb-cell:last-child { border-right: 0; }
.fb-cell i {
  font-style: normal;
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--blue);
}
.fb-cell a { text-decoration: none; }
.fb-cell a:hover { color: var(--orange); }

.fb-brand {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
}

/* ---------- motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(22px); animation: rise .7s ease forwards; }
  .r1 { animation-delay: .05s; }
  .r2 { animation-delay: .15s; }
  .r3 { animation-delay: .3s; }
  .r4 { animation-delay: .42s; }
  .r5 { animation-delay: .55s; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }

  .dim-draw::before { transform: scaleX(0); transform-origin: left; animation: draw .9s ease .6s forwards; }
  @keyframes draw { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .titleblock { max-width: 520px; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .seq-grid { grid-template-columns: 1fr; }
  .seq-photo { position: static; max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .fb-grid { grid-template-columns: 1fr 1fr; }
  .fb-cell { border-bottom: 1px solid var(--rule); }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .scope-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .brand-name em { display: none; }
  .btn-top { padding: 9px 12px; font-size: .74rem; }
  .fb-grid { grid-template-columns: 1fr; }
  .fb-cell { border-right: 0; }
  .dim { height: auto; }
  .dim::after { display: none; }
  .dim::before { position: static; display: block; margin-top: 8px; }
  .dim-label { position: static; display: inline-block; transform: none; padding: 0; }
}
