/* ==========================================================
   TUSC — design tokens
   ========================================================== */
:root {
  --forest-950: #0c130e;
  --forest-900: #17231a;   /* matches logo backing exactly */
  --forest-800: #202f24;
  --forest-700: #2b3e30;
  --bone: #F2EEE4;
  --bone-dim: #E4DFD1;
  --ink: #14140f;
  --brass: #C9A24B;
  --brass-bright: #E0BE6E;
  --brass-deep: #9A7B4F;
  --oxblood: #6B2D35;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin: 0 0 18px;
  text-align: center;
}
.eyebrow--dark { color: var(--brass-deep); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  margin: 0 auto 48px;
  max-width: 20ch;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--brass); color: var(--forest-950); }
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(242,238,228,.35); color: var(--bone); }
.btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); transform: translateY(-2px); }

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(12, 19, 14, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(201,162,75,.15);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 40px; width: auto; border-radius: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: .85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; color: var(--brass-bright); }
.nav-cta {
  border: 1px solid var(--brass);
  padding: 9px 16px;
  border-radius: 2px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--brass); color: var(--forest-950) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--bone); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 15%, var(--forest-800), var(--forest-900) 55%, var(--forest-950));
  color: var(--bone);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-texture {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(180deg, rgba(12,19,14,.55) 0%, rgba(12,19,14,.85) 65%, var(--forest-950) 100%),
    url('assets/tusc-topo-bg.jpg');
  background-size: cover;
  background-position: center;
  mask-image: radial-gradient(ellipse at 65% 35%, black, transparent 75%);
}
.tusk-curve { position: absolute; width: 100%; pointer-events: none; }
.tusk-curve--hero {
  bottom: 0; left: 0; height: 55%;
  opacity: .55;
}
.tusk-curve path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw 2.4s var(--ease) .3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-content {
  position: relative; z-index: 2;
  padding: 140px 32px 100px;
  max-width: var(--wrap); margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-logo {
  width: min(640px, 88vw);
  height: auto;
  margin: 0 auto 36px;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  animation: logoIn 1.1s var(--ease) .25s forwards;
}
@keyframes logoIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.hero-sub { font-size: 18px; max-width: 46ch; color: var(--bone-dim); margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--brass), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* ==========================================================
   Philosophy
   ========================================================== */
.philosophy {
  background: var(--bone);
  padding: 120px 0;
  text-align: center;
}
.philosophy-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  max-width: 18ch;
  margin: 0 auto 32px;
}
.philosophy-body {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 17px;
  color: #47473f;
}
.philosophy-signature {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 36px;
}

/* ==========================================================
   Services — spec tags
   ========================================================== */
.services { background: var(--forest-900); color: var(--bone); padding: 120px 0; }
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.spec-tag {
  position: relative;
  border-radius: 4px;
  padding: 40px 28px 32px;
  transition: transform .3s var(--ease);
}
.spec-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--forest-800);
  border: 1px dashed rgba(201,162,75,.4);
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  transition: border-color .3s var(--ease);
}
.spec-tag:hover { transform: translateY(-6px); }
.spec-tag:hover::before { border-color: var(--brass-bright); }
.spec-tag--secondary { opacity: .88; }
.spec-tag-grommet {
  position: absolute; top: 20px; right: 22px;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brass-bright), var(--brass-deep) 70%);
  box-shadow: inset 0 0 0 3px var(--forest-800);
}
.spec-tag-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin: 0 0 16px;
}
.spec-tag h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin: 0 0 12px; }
.spec-tag p { margin: 0; color: var(--bone-dim); font-size: 15px; }

/* ==========================================================
   Process / timeline
   ========================================================== */
.process { position: relative; background: var(--bone); padding: 130px 0 110px; }
.tusk-curve--divider { top: -1px; left: 0; height: 120px; opacity: .5; }
.tusk-curve--divider path { stroke: var(--brass-deep); }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; }
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid rgba(20,20,15,.12);
  text-align: left;
}
.timeline li:last-child { border-bottom: 1px solid rgba(20,20,15,.12); }
.timeline-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--brass-deep);
  padding-top: 4px;
}
.timeline-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 6px; }
.timeline-body p { margin: 0; color: #47473f; max-width: 52ch; }

/* ==========================================================
   Work / gallery — 4 centered rotating photos
   ========================================================== */
.work { background: var(--forest-900); color: var(--bone); padding: 120px 0; }

.work-rotator {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 50px auto 0;
}
.work-rotator.is-visible { display: grid; }
.work-slot {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--forest-800);
}
.work-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .4s var(--ease);
}
.work-slot.is-fading img { opacity: 0; }

.work-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: center;
  margin-top: 50px;
}

/* ==========================================================
   Contact
   ========================================================== */
.contact { background: var(--forest-950); color: var(--bone); padding: 130px 0; text-align: center; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  max-width: 18ch;
  margin: 0 auto 18px;
}
.contact-sub { color: var(--bone-dim); max-width: 50ch; margin: 0 auto 40px; }

/* ==========================================================
   Contact form
   ========================================================== */
.contact-form {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  background: var(--forest-900);
  border: 1px solid rgba(201,162,75,.2);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-bottom: 24px;
}
.form-row { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.form-grid .form-row { margin-bottom: 0; height: 100%; }
.form-row--full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  line-height: 1.3;
}
.form-grid .form-row input,
.form-grid .form-row select {
  margin-top: auto;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  background: var(--forest-900);
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 2px;
  padding: 15px 16px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  resize: vertical;
  width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brass-bright);
}
.form-row input[type="file"] {
  color: var(--bone-dim);
  font-size: 14px;
}
.field-hint { font-size: 12px; color: var(--bone-dim); margin: 2px 0 0; }

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bone);
  background: var(--forest-900);
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
}
.checkbox-pill input { accent-color: var(--brass); }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.4em;
}
.form-status.is-success { color: #7fc98f; }
.form-status.is-error { color: #e08b8b; }

.form-disclaimer {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bone-dim);
  border-top: 1px solid rgba(201,162,75,.2);
  padding-top: 16px;
}

.contact-email {
  margin-top: 28px;
  font-size: 14px;
  color: var(--bone-dim);
}
.contact-email a { color: var(--brass-bright); text-decoration: underline; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--forest-950); color: var(--bone-dim); padding: 60px 0 34px; border-top: 1px solid rgba(201,162,75,.15); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  text-align: center;
}
.footer-logo { height: 34px; width: auto; border-radius: 3px; margin: 0 auto 12px; }
.footer-brand p { font-size: 13px; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-links a { font-size: 14px; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--brass-bright); }
.footer-meta { font-size: 13px; text-align: center; }
.footer-meta p { margin: 0 0 6px; }

/* ==========================================================
   Finish pills (services section) — hover/tap for description
   ========================================================== */
.finish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.finish-pill {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brass-bright);
  border: 1px solid rgba(201,162,75,.35);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: default;
}
.finish-pill:hover,
.finish-pill:focus,
.finish-pill.is-active {
  background: rgba(201,162,75,.12);
  border-color: var(--brass-bright);
  outline: none;
}
.finish-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  max-width: 80vw;
  background: var(--forest-950);
  border: 1px solid rgba(201,162,75,.4);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bone-dim);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 10;
}
.finish-pill:hover .finish-tooltip,
.finish-pill:focus .finish-tooltip,
.finish-pill.is-active .finish-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ==========================================================
   Scroll-reveal
   ========================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .tag-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(12,19,14,.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 32px 26px;
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 8px; }

  .tag-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 50px 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .finish-list dt { flex-basis: 108px; }
  .work-track img { height: 220px; }
  .work-rotator { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-top: 120px; }
}
