/* ================================================================
   ARCTUM DIGITAL — Bold & Direct
   ================================================================ */

:root {
  /* Palette */
  --bg:        #FAFAF7;
  --bg-soft:   #F2F0EA;
  --surface:   #FFFFFF;
  --ink:       #0A0A0A;
  --ink-2:     #1A1A1A;
  --ink-mute:  #555550;
  --ink-faint: #8A8880;
  --rule:      #E2E0D8;
  --rule-soft: #ECEAE3;
  --accent:    #FF5B1F;
  --accent-2:  #E54810;

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --pad-x:     clamp(24px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 176px);

  /* Motion */
  --ease:      cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  font-feature-settings: "ss01" on, "ss02" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ================================================================
   Header
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--rule);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo-mark {
  color: var(--ink);
  flex: none;
  width: 26px;
  height: 26px;
}
.logo-word { font-weight: 600; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 36px;
}
.site-nav a {
  font-size: 1.02rem;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  transition: gap .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.header-cta:hover {
  gap: 14px;
  background: var(--accent);
  border-color: var(--accent);
}
.header-cta .arrow { transition: transform .2s var(--ease); }

/* ---------- Accent inline ---------- */
.accent { color: var(--accent); }

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(10,10,10,0.12) 1.1px, transparent 1.6px);
  background-size: 32px 32px;
  background-position: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom,
              rgba(0,0,0,0.85) 0%,
              rgba(0,0,0,0.40) 65%,
              rgba(0,0,0,0) 98%);
          mask-image: linear-gradient(to bottom,
              rgba(0,0,0,0.85) 0%,
              rgba(0,0,0,0.40) 65%,
              rgba(0,0,0,0) 98%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(96px, 14vw, 176px);
  padding-bottom: clamp(112px, 14vw, 192px);
  max-width: 1280px;
}
.hero-text {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.85rem, 7.8vw, 6.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: clamp(36px, 4vw, 56px);
  max-width: 17ch;
}

/* ---------- Hero side graphic ---------- */
.hero-graphic {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 460px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 16px 32px rgba(10,10,10,0.10));
}
.hg-layer {
  transform-box: fill-box;
  transform-origin: center;
}
.hg-layer-back  { animation: hgFloatA 9s ease-in-out infinite; }
.hg-layer-mid   { animation: hgFloatB 11s ease-in-out infinite; }
.hg-layer-front { animation: hgFloatC 13s ease-in-out infinite; }
@keyframes hgFloatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hgFloatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes hgFloatC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .hg-layer-back, .hg-layer-mid, .hg-layer-front { animation: none; }
}
@media (max-width: 1180px) {
  .hero-graphic { width: 320px; height: 388px; opacity: 0.35; }
}
@media (max-width: 980px) {
  .hero-graphic { display: none; }
}

.hero-sub {
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-mute);
  max-width: 56ch;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), gap .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  gap: 16px;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg);
}
.btn-large {
  padding: 20px 28px;
  font-size: 1.12rem;
}
.btn-xl {
  padding: 24px 32px;
  font-size: 1.25rem;
}
.btn-arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ================================================================
   Section base
   ================================================================ */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule); }

.section-header {
  margin-bottom: clamp(56px, 7vw, 88px);
  max-width: 920px;
}
.section-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
}
.section-title.huge {
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  letter-spacing: -0.038em;
  line-height: 1.0;
}
.section-sub {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  color: var(--ink-mute);
  max-width: 62ch;
  line-height: 1.5;
}

/* ================================================================
   About
   ================================================================ */
.about .section-content { max-width: 980px; }
.about .lede {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 26ch;
}
.about p:not(.lede) {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 60ch;
  margin-bottom: 22px;
}
.about p:last-child { margin-bottom: 0; }

/* ================================================================
   Services
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--rule);
  gap: 1px;
}
.service {
  background: var(--bg);
  padding: 44px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  transition: background .25s var(--ease);
}
.service:hover { background: var(--surface); }
.service-mark {
  width: 44px;
  height: 44px;
  flex: none;
  margin-bottom: 24px;
  transition: transform .35s var(--ease);
}
.service:hover .service-mark { transform: rotate(8deg) scale(1.04); }
.service-title {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.1;
  transition: color .25s var(--ease);
}
.service-desc {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
/* per-service hover color tint on title */
.service-1:hover .service-title { color: #FF5B1F; }
.service-2:hover .service-title { color: #0E5C53; }
.service-3:hover .service-title { color: #6B2F4A; }
.service-4:hover .service-title { color: #1F3A6E; }
.service-5:hover .service-title { color: #4A6B36; }
.service-6:hover .service-title { color: #B8721A; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: auto; padding: 36px 28px 40px; }
}

/* ================================================================
   Approach
   ================================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 96px;
  align-items: start;
}
.approach-body p {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-mute);
  margin-bottom: 24px;
  max-width: 58ch;
}
.approach-body p:last-child { margin-bottom: 0; }

.primitives {
  border-top: 1px solid var(--ink);
}
.primitives-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 0 24px;
  color: var(--ink);
}
.primitives ul {
  border-top: 1px solid var(--rule);
}
.primitives li {
  padding: 22px 0 22px 20px;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  transition: padding-left .25s var(--ease), color .25s var(--ease), border-left-color .25s var(--ease);
  cursor: default;
}
.primitives li:nth-child(1) { border-left-color: #FF5B1F; }
.primitives li:nth-child(2) { border-left-color: #0E5C53; }
.primitives li:nth-child(3) { border-left-color: #6B2F4A; }
.primitives li:nth-child(4) { border-left-color: #1F3A6E; }
.primitives li:nth-child(5) { border-left-color: #B8721A; }
.primitives li:hover {
  padding-left: 28px;
}
.primitives li:nth-child(1):hover { color: #FF5B1F; }
.primitives li:nth-child(2):hover { color: #0E5C53; }
.primitives li:nth-child(3):hover { color: #6B2F4A; }
.primitives li:nth-child(4):hover { color: #1F3A6E; }
.primitives li:nth-child(5):hover { color: #B8721A; }

@media (max-width: 880px) {
  .approach-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ================================================================
   Contact
   ================================================================ */
.contact {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--ink);
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.08) 1.1px, transparent 1.6px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 0%, rgba(0,0,0,0.7), rgba(0,0,0,0) 70%);
          mask-image: radial-gradient(ellipse at 30% 0%, rgba(0,0,0,0.7), rgba(0,0,0,0) 70%);
}
.contact-inner {
  position: relative;
  max-width: 1180px;
}
.contact-title {
  color: var(--bg);
  max-width: 22ch;
  margin-bottom: 36px;
}
.contact-sub {
  color: rgba(250,250,247,0.65);
  font-size: clamp(1.2rem, 1.55vw, 1.4rem);
  max-width: 58ch;
  line-height: 1.5;
  margin-bottom: 56px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.contact .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.contact .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 88px 0 36px;
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 72px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.logo-footer {
  font-size: 1.75rem;
}
.logo-footer .logo-mark {
  width: 30px;
  height: 30px;
}
.footer-tagline {
  color: var(--ink-mute);
  max-width: 26ch;
  font-size: 1.1rem;
  line-height: 1.45;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-label {
  display: block;
  color: var(--ink);
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-cols li { margin-bottom: 12px; }
.footer-cols a {
  font-size: 1.08rem;
  color: var(--ink-mute);
  transition: color .15s var(--ease);
}
.footer-cols a:hover { color: var(--ink); }
.footer-address {
  margin-top: 20px;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-mute);
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 28px;
  color: var(--ink-mute);
  font-size: 1rem;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 56px; padding-bottom: 48px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .site-footer { padding-top: 64px; }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; gap: 36px; }
}

/* ================================================================
   Reveal animation
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal .85s var(--ease) forwards;
}
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .22s; }
.reveal.d3 { animation-delay: .38s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ================================================================
   Responsive header
   ================================================================ */
@media (max-width: 820px) {
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .header-cta-text { display: none; }
  .header-cta { padding: 12px 14px; }
  .header-inner { gap: 16px; padding: 18px var(--pad-x); }
  .logo { font-size: 1.35rem; gap: 12px; }
  .logo-mark { width: 22px; height: 22px; }
}
