/* =================================================================
   Achraf Kadiri — Portfolio
   Design tokens + Hero section
   ================================================================= */

/* ----------------------------- Tokens ---------------------------- */
:root {
  /* Color */
  --navy: #1b2a4a;
  --navy-deep: #15223b;
  --navy-soft: #24365c;
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --bg: #fdfcf8;
  --bg-warm: #f6f3ea;
  --slate: #1e2a3a;
  --slate-soft: #4a5568;
  --line: rgba(27, 42, 74, 0.12);

  /* On-navy text */
  --on-navy: #f3f1ea;
  --on-navy-soft: rgba(243, 241, 234, 0.72);
  --on-navy-faint: rgba(243, 241, 234, 0.45);

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing & motion */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--slate);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--teal);
  color: #fff;
}

/* =============================== HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(120% 90% at 78% 12%, var(--navy-soft) 0%, transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(5rem, 10vh, 7rem);
}

/* Grain / noise overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

/* ----- Content column ----- */
.hero__content {
  max-width: 38rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 100px;
  background: rgba(13, 148, 136, 0.08);
  backdrop-filter: blur(4px);
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 1.6rem;
  color: #fff;
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.6vw, 0.98rem);
  letter-spacing: 0.04em;
  color: var(--teal-bright);
  margin-top: 1.4rem;
  font-weight: 500;
}

.subtitle-item {
  display: inline-block;
  margin: 0 0.55rem;
  white-space: nowrap;
}

.subtitle-item:first-child { margin-left: 0; }

.hero__valueprop {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
  color: var(--on-navy-soft);
  margin-top: 1.6rem;
  font-weight: 300;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.7);
}

.btn--primary:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(20, 184, 166, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: rgba(243, 241, 234, 0.28);
}

.btn--ghost:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--teal-bright);
  border-color: var(--teal-bright);
}

.btn--outline:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--teal-bright);
  color: #fff;
  transform: translateY(-2px);
}

/* ----- Portrait column ----- */
.hero__portrait {
  display: flex;
  justify-content: center;
}

.portrait-ring {
  position: relative;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.55), rgba(27, 42, 74, 0.1));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(243, 241, 234, 0.08);
}

.portrait-ring::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: contrast(1.02) brightness(1.02);
}

/* ----- Scroll indicator ----- */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--on-navy-faint);
  transition: color 0.3s var(--ease);
}

.scroll-indicator:hover {
  color: var(--teal-bright);
}

.scroll-indicator__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal-bright), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--on-navy);
  animation: scrollPulse 2.2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

/* ----- Custom cursor (desktop) ----- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-bright);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover {
  width: 38px;
  height: 38px;
  background: rgba(20, 184, 166, 0.4);
}

/* Hide custom cursor on touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ----------------------------- Hero responsive ------------------- */
@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(2.2rem, 7vw, 3rem);
  }

  .hero__content { max-width: 100%; order: 2; }
  .hero__portrait { order: 1; }
  .hero__cta { justify-content: center; }
  .status-pill { margin: 0 auto; }
  .hero__valueprop--lead { margin-inline: auto; }

  /* Hide the decorative scroll cue on stacked layouts so it can't
     overlap the (taller) wrapped CTA buttons. */
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 5rem; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ----------------------------- A11y ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =================================================================
   SHARED LAYOUT + REVEAL
   ================================================================= */
.section {
  padding: clamp(2.75rem, 6.5vh, 4.75rem) var(--gutter);
}

.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.eyebrow--light { color: var(--teal-bright); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =================================================================
   STATS STRIP
   ================================================================= */
.stats {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5rem) var(--gutter);
}

.stats__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat {
  text-align: center;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(clamp(1.5rem, 4vw, 3rem) / -2);
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

/* =================================================================
   ABOUT
   ================================================================= */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about__body p {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--slate-soft);
  line-height: 1.8;
}

.about__body p + p {
  margin-top: 1.5rem;
}

/* =================================================================
   EXPERIENCE TIMELINE
   ================================================================= */
.timeline {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--line));
}

.tl-item {
  position: relative;
  padding-bottom: clamp(1.6rem, 4vh, 2.6rem);
}

.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  transform: translateX(0);
  box-shadow: 0 0 0 4px var(--bg);
}

.tl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -28px rgba(27, 42, 74, 0.4);
  border-color: rgba(13, 148, 136, 0.4);
}

.tl-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.tl-card__role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--navy);
}

.tl-card__date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  white-space: nowrap;
}

.tl-card__company {
  font-weight: 600;
  color: var(--slate);
  margin-top: 0.25rem;
}

.tl-card__desc {
  margin-top: 0.8rem;
  color: var(--slate-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* =================================================================
   TOOLS & STACK
   ================================================================= */
.tools__grid {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.4rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tool__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.tool__name {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--slate);
  transition: color 0.35s var(--ease);
}

.tool:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  background: var(--navy);
  box-shadow: 0 20px 40px -24px rgba(27, 42, 74, 0.5);
}

.tool:hover .tool__name { color: #fff; }

/* =================================================================
   LANGUAGES
   ================================================================= */
.lang-list {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.lang {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.lang:last-child { border-bottom: none; }

.lang__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
}

.lang__level {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: right;
}

.lang__bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.lang__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--teal), var(--teal-bright));
  border-radius: 3px;
  transition: width 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.lang.is-visible .lang__fill { width: var(--w); }

/* =================================================================
   CONTACT / CTA
   ================================================================= */
.contact {
  position: relative;
  background:
    radial-gradient(110% 80% at 80% 0%, var(--navy-soft) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  overflow: hidden;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.contact__details {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(243, 241, 234, 0.14);
  max-width: 760px;
}

.contact__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.4rem;
  border-bottom: 1px solid rgba(243, 241, 234, 0.14);
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}

.contact__row:hover {
  padding-left: 1.2rem;
  color: var(--teal-bright);
}

.contact__row-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}

.contact__row-value {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--on-navy);
  transition: color 0.4s var(--ease);
}

.contact__row:hover .contact__row-value { color: var(--teal-bright); }

.contact__cta { margin-top: clamp(2rem, 5vh, 3rem); }

/* Calendly booking */
.contact__book {
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.contact__book-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--on-navy-soft);
  margin-bottom: 1.2rem;
}

.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.6);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--navy-deep);
  color: var(--on-navy-faint);
  padding: 2.4rem var(--gutter);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.footer__copy { color: var(--on-navy-soft); }

/* =================================================================
   HERO LEAD STATEMENT (repositioning)
   ================================================================= */
.hero__valueprop--lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.1vw, 2.15rem);
  line-height: 1.32;
  color: #fff;
  margin-top: 1.5rem;
  max-width: 30ch;
}

.hero__content .hero__subtitle {
  margin-top: 1.3rem;
}

/* =================================================================
   CASE STUDIES
   ================================================================= */
.cases {
  position: relative;
  background:
    radial-gradient(110% 90% at 85% 5%, var(--navy-soft) 0%, transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  overflow: hidden;
}

.cases__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 18ch;
}

.cases__sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--teal-bright);
  margin-top: 1rem;
}

.cases__stack {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vh, 2rem);
}

.case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  background: rgba(243, 241, 234, 0.04);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.case:hover {
  transform: translateY(-4px);
  background: rgba(243, 241, 234, 0.06);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.7);
}

.case__tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--teal-bright);
  line-height: 1;
}

.case__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  color: #fff;
}

.case__body {
  margin-top: 0.9rem;
  color: var(--on-navy-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
}

.case__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.case__pills li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--teal-bright);
  background: rgba(13, 148, 136, 0.18);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}

/* =================================================================
   HOW I THINK
   ================================================================= */
.think__sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
  margin-top: 1rem;
}

.think__grid {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
}

.principle {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.principle__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--teal);
  display: block;
  margin-bottom: 1rem;
}

.principle__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  color: var(--navy);
}

.principle__desc {
  margin-top: 0.8rem;
  color: var(--slate-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42ch;
}

/* =================================================================
   CONTACT — repositioned headline
   ================================================================= */
.contact__title {
  max-width: 22ch;
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
}

.contact__title em {
  font-style: italic;
  color: var(--teal-bright);
}

.contact__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--on-navy-soft);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 860px) {
  .think__grid { grid-template-columns: 1fr; gap: 2rem; }
  .case { grid-template-columns: 1fr; gap: 0.6rem; }
  .case__tag { font-size: 1.4rem; }
  .about__inner { grid-template-columns: 1fr; }
  .stats__inner { gap: 1.5rem; }
}

@media (max-width: 560px) {
  .stats__inner { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .stat {
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { padding-bottom: 0; border-bottom: none; }
  .contact__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .footer__inner { flex-direction: column; text-align: center; }
}
