/* INKFIELD — reveal by erasure */

:root {
  --ink: #0d0d0d;
  --paper: #f4f1ea;
  --paper-dim: #e8e2d6;
  --paper-muted: #c9c2b4;
  --accent: #e23e3e;
  --ochre: #c48a3a;
  --ink-soft: #1a1a1a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

body.has-touch {
  cursor: auto;
}

body.has-touch .cursor {
  display: none !important;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: none;
}

address {
  font-style: normal;
}

.icons-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ——— Custom cursor ——— */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.cursor__blob {
  display: block;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--paper);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    margin 0.35s var(--ease), background 0.25s ease, opacity 0.25s ease;
}

.cursor__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
  white-space: nowrap;
}

.cursor.is-link .cursor__blob {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: transparent;
  border: 1.5px solid var(--paper);
}

.cursor.is-erase .cursor__blob {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: var(--accent);
  mix-blend-mode: normal;
}

.cursor.is-erase .cursor__label {
  opacity: 1;
  color: var(--paper);
  transform: translate(-50%, -50%) scale(1);
}

.cursor.is-down .cursor__blob {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.92), transparent);
  mix-blend-mode: difference;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav__links a {
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav__cta:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.btn--solid {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
}

.btn--solid:hover {
  background: #c93434;
  border-color: #c93434;
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--paper-muted);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 234, 0.06);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 4rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__reveal-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 138, 58, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(226, 62, 62, 0.28), transparent 50%),
    linear-gradient(145deg, #2a2218 0%, #1a1410 35%, #0f0c0a 70%, #1c120e 100%);
  background-size: cover;
  background-position: center;
}

.hero__reveal-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(244, 241, 234, 0.03) 2px,
      rgba(244, 241, 234, 0.03) 3px
    ),
    radial-gradient(circle at 30% 40%, rgba(244, 241, 234, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(226, 62, 62, 0.15) 0 40%, transparent 55%);
  background-size: auto, 24px 24px, auto;
}

.hero__reveal-layer::after {
  content: "INK";
  position: absolute;
  right: 6%;
  bottom: 18%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.18);
  user-select: none;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  pointer-events: none;
}

.hero__content .btn,
.hero__content a {
  pointer-events: auto;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-inner {
  display: block;
}

.reveal-inner--accent {
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--paper-dim);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.35);
  backdrop-filter: blur(6px);
  animation: pulse-hint 2.4s ease-in-out infinite;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__hint.is-done {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  animation: none;
}

@keyframes pulse-hint {
  0%,
  100% {
    border-color: rgba(244, 241, 234, 0.3);
    box-shadow: 0 0 0 0 rgba(226, 62, 62, 0);
  }
  50% {
    border-color: rgba(226, 62, 62, 0.55);
    box-shadow: 0 0 0 6px rgba(226, 62, 62, 0.08);
  }
}

.hero__progress {
  margin-top: 1.25rem;
  width: min(220px, 50vw);
  height: 2px;
  background: rgba(244, 241, 234, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.hero__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ochre), var(--accent));
  transition: width 0.15s linear;
}

.hero__cta-wrap {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero__cta-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-muted);
  pointer-events: none;
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--paper-muted), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ——— Sections shared ——— */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
}

.section-title__meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-muted);
}

/* ——— Featured ——— */
.featured {
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  background: var(--ink);
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.featured__card {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .featured__card {
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.featured__visual {
  position: relative;
}

.featured__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid rgba(244, 241, 234, 0.1);
}

.featured__ink {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(226, 62, 62, 0.4), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(196, 138, 58, 0.35), transparent 45%),
    linear-gradient(160deg, #1e1812, #0d0d0d 60%, #2a1a14);
}

.featured__ink::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(244, 241, 234, 0.12);
}

.featured__ink::after {
  content: "FIELD\A NOTES";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--paper);
  opacity: 0.9;
}

.featured__stamp {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  color: var(--accent);
  opacity: 0.85;
  transform: rotate(-12deg);
}

.featured__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 0.75rem;
}

.featured__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.featured__arrow {
  display: inline-flex;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.featured__card:hover .featured__arrow {
  transform: translateX(8px);
}

.featured__desc {
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.featured__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.featured__tags li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 999px;
  color: var(--paper-muted);
}

.featured__more {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
}

/* ——— About ——— */
.about {
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  background: var(--paper);
  color: var(--ink);
}

.about .eyebrow {
  color: var(--accent);
}

.about__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.about__body {
  font-size: 1.05rem;
  color: #3a3630;
  max-width: 38ch;
}

.about__services-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8378;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(13, 13, 13, 0.12);
}

.accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
  text-align: left;
  cursor: none;
  transition: color 0.25s ease;
}

.accordion__toggle svg {
  transition: transform 0.35s var(--ease);
  color: var(--accent);
}

.accordion__toggle.is-open {
  color: var(--accent);
}

.accordion__toggle.is-open svg {
  transform: rotate(45deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.accordion__panel > * {
  overflow: hidden;
}

.accordion__panel p {
  padding: 0;
  color: #4a453c;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease, padding 0.35s ease;
}

.accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.accordion__panel.is-open p {
  opacity: 1;
  padding: 0.35rem 0;
}

.accordion__panel.is-open p:first-child {
  padding-top: 0.85rem;
}

.accordion__panel.is-open p:last-child {
  padding-bottom: 1.15rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(13, 13, 13, 0.12);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b655a;
}

/* ——— Contact ——— */
.contact {
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  background: var(--ink);
  border-top: 1px solid rgba(244, 241, 234, 0.06);
}

.contact__inner {
  max-width: 56rem;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 3rem;
  max-width: 16ch;
}

.contact__rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
}

.contact__line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

a.contact__line:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact__line--addr {
  color: var(--paper-muted);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin-top: 0.75rem;
}

.contact__social {
  display: flex;
  gap: 1.25rem;
}

.contact__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.contact__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(226, 62, 62, 0.08);
}

/* ——— Footer ——— */
.footer {
  padding: 2.5rem var(--pad) 2rem;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  background: #0a0a0a;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.footer__tag {
  font-size: 0.9rem;
  color: var(--paper-muted);
  max-width: 28rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #6b655a;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.06);
}

.footer__bottom a:hover {
  color: var(--paper);
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__hint,
  .hero__scroll i {
    animation: none;
  }

  .cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

  button,
  a {
    cursor: pointer;
  }
}
