/* ECOMM FACTORY — visual system: black / white / electric Estonian blue, dot-data motif, right arrows */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --ee-blue: #0A46FF;       /* electric / digital — UI, dots, backgrounds, accents */
  --ee-blue-flag: #1660B0;  /* authentic, muted — reserved for the Estonian flag only */
  --gray: #6B6B6B;
  --gray-light: #E7E7E7;
  --off-white: #F6F6F4;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ef-display { font-family: 'Archivo Black', sans-serif; }
.ef-word { font-family: 'Archivo', sans-serif; font-weight: 800; }
.ef-mono { font-family: 'JetBrains Mono', monospace; font-weight: 600; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; text-align: left; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.ef-focus:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.ef-section--dark .ef-focus:focus-visible,
.ef-manifesto .ef-focus:focus-visible { outline-color: var(--white); }

.ef-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--black); color: var(--white); padding: 12px 20px;
}
.ef-skip:focus { left: 12px; top: 12px; }

.ef-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.ef-container { max-width: 1180px; margin: 0 auto; padding: 0 6vw; position: relative; z-index: 1; }

@media (min-width: 1500px) {
  .ef-container { padding: 0 60px; }
}

/* ===== DOT-FIELD CANVASES (shared, decorative, behind content) ===== */
.ef-dots-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; display: block;
}
.ef-dots-strip {
  position: relative; inset: auto; width: 100%; height: clamp(70px, 10vw, 120px);
  margin: 40px 0 6px;
}

/* ===== NAV ===== */
.ef-nav-wrap { position: sticky; top: 0; z-index: 100; background: var(--white); }
.ef-banner {
  background: var(--black); color: var(--white);
  text-align: center; padding: 9px 6vw;
  font-size: clamp(0.68rem, 1.4vw, 0.8rem); letter-spacing: 0.03em;
}
.ef-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw; border-bottom: 2px solid var(--black);
}
.ef-logo { display: flex; flex-direction: column; line-height: 0.95; }
.ef-nav-logo-l1 { font-size: 1.15rem; letter-spacing: 0.01em; }
.ef-nav-logo-l2 { font-size: 0.72rem; letter-spacing: 0.04em; margin-top: 3px; }

.ef-nav-toggle {
  display: none; align-items: center; gap: 10px;
  position: relative; z-index: 95;
}
.ef-nav-toggle-label { font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 700; }
.ef-nav-toggle-box { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.ef-nav-toggle-box span { display: block; height: 2.5px; background: var(--black); transition: transform .25s ease, opacity .25s ease; }
.ef-nav-toggle[aria-expanded="true"] .ef-nav-toggle-box span:first-child { transform: translateY(3.5px) rotate(45deg); }
.ef-nav-toggle[aria-expanded="true"] .ef-nav-toggle-box span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.ef-nav-menu { display: flex; align-items: center; gap: 34px; }
.ef-nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.ef-nav-external { display: flex; gap: 20px; }
.ef-navlink, .ef-navlink-ext {
  font-size: 0.84rem; letter-spacing: 0.02em; position: relative; padding-bottom: 4px;
  display: inline-block;
}
.ef-navlink::after, .ef-navlink-ext::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--ee-blue); transition: width .25s ease;
}
.ef-navlink:hover, .ef-navlink:focus-visible { color: var(--ee-blue); }
.ef-navlink:hover::after, .ef-navlink-ext:hover::after,
.ef-navlink:focus-visible::after, .ef-navlink-ext:focus-visible::after { width: 100%; }
.ef-navlink-ext { color: var(--gray); }
.ef-navlink-ext:hover { color: var(--black); }

@media (max-width: 900px) {
  .ef-nav-toggle { display: flex; }
  .ef-nav-menu {
    position: fixed; inset: 0; top: 0; z-index: 90;
    background: var(--white);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 40px; padding: 8vh 8vw;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .ef-nav-menu[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .ef-nav-links { flex-direction: column; gap: 20px; }
  .ef-navlink, .ef-navlink-ext { font-size: 1.6rem; }
  .ef-nav-external { flex-direction: column; gap: 16px; }
}

/* ===== HERO ===== */
.ef-hero { position: relative; padding: 70px 6vw 70px; overflow: hidden; }
.ef-hero-inner { position: relative; z-index: 1; }
.ef-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 0.86rem; letter-spacing: 0.04em; color: var(--black); margin: 0 0 20px;
  padding-left: 14px; border-left: 4px solid var(--ee-blue);
}
.ef-hero-headline {
  font-size: clamp(2.4rem, 7.6vw, 5.8rem);
  line-height: 0.94; text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0;
}
.ef-hero-headline--reveal { margin-top: clamp(18px, 2.6vw, 30px); }
.ef-hero-headline--blue { color: var(--ee-blue); }
.ef-hero-headline .ef-reveal-line { display: block; }

.ef-reveal-line {
  opacity: 0; transform: translateY(0.4em);
  transition: opacity .7s cubic-bezier(.22,.7,.2,1), transform .7s cubic-bezier(.22,.7,.2,1);
}
.ef-reveal-line.is-visible { opacity: 1; transform: translateY(0); }

.ef-hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin: 22px 0 12px; color: #222; }
.ef-hero-micro { font-family: 'JetBrains Mono', monospace; font-size: 0.86rem; letter-spacing: 0.03em; color: var(--black); font-weight: 700; }
.ef-hero-arrow { width: 100%; margin: 30px 0 6px; }
.ef-hero-arrow svg { display: block; width: 100%; height: clamp(28px, 4vw, 42px); }
.ef-chevron-cell { fill: var(--ee-blue); opacity: 0.35; animation: ef-chevron-pulse 2.6s ease-in-out infinite; }

@keyframes ef-chevron-pulse {
  0%, 100% { opacity: 0.3; }
  35% { opacity: 1; }
  70% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .ef-chevron-cell { animation: none; opacity: 0.75; }
}

.ef-hero-ctas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }

.ef-gradient-bar { height: 4px; background: linear-gradient(90deg, var(--black), var(--ee-blue) 50%, var(--black)); }

/* ===== ARROW CTA COMPONENT ===== */
.ef-arrow-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; letter-spacing: 0.01em; padding: 16px 28px;
  border: 3px solid var(--black); white-space: nowrap;
}
.ef-arrow-glyph { display: inline-block; transition: transform .25s cubic-bezier(.22,.7,.2,1); font-size: 1.05em; }
.ef-arrow-cta:hover .ef-arrow-glyph, .ef-arrow-cta:focus-visible .ef-arrow-glyph { transform: translateX(6px); }
.ef-arrow-cta--solid { background: var(--black); color: var(--white); }
.ef-arrow-cta--solid:hover, .ef-arrow-cta--solid:focus-visible { background: var(--ee-blue); border-color: var(--ee-blue); color: var(--black); }
.ef-arrow-cta--ghost { background: transparent; color: var(--black); border-color: var(--gray-light); }
.ef-arrow-cta--ghost:hover, .ef-arrow-cta--ghost:focus-visible { border-color: var(--black); color: var(--ee-blue); }
.ef-arrow-cta--accent { background: var(--black); color: var(--white); border-color: var(--black); }
.ef-arrow-cta--accent:hover, .ef-arrow-cta--accent:focus-visible { background: var(--white); border-color: var(--black); color: var(--black); }

/* ===== SECTIONS ===== */
.ef-section { position: relative; padding: 100px 0; overflow: hidden; }
.ef-section--dark { background: var(--black); color: var(--white); }
.ef-section--dark .ef-gray-text { color: #B8B8B8; }
.ef-section--blue { background: var(--ee-blue); color: var(--black); }

.ef-kicker {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 0.86rem; letter-spacing: 0.04em; color: var(--black); margin: 0 0 20px;
  padding-left: 14px; border-left: 4px solid var(--ee-blue);
}
.ef-section--dark .ef-kicker { color: var(--white); border-left-color: var(--ee-blue); }
.ef-section--blue .ef-kicker { color: var(--black); border-left-color: var(--black); }

.ef-section-title {
  font-size: clamp(1.9rem, 4.8vw, 3.4rem); line-height: 1.05; text-transform: uppercase;
  margin: 0 0 26px; max-width: 22ch;
}
.ef-big-statement {
  font-size: clamp(1.8rem, 4.8vw, 3.1rem); line-height: 1.1; text-transform: uppercase;
  margin: 0 0 26px; max-width: 26ch;
}
.ef-lede { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 60ch; color: #333; margin-bottom: 8px; }
.ef-section--dark .ef-lede { color: #CFCFCF; }
.ef-section--blue .ef-lede { color: var(--black); }
.ef-body { font-size: 0.98rem; line-height: 1.65; max-width: 56ch; color: #CFCFCF; margin-top: 18px; }
.ef-eyebrow-strong { font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin-top: 22px; }

/* ===== PILLARS ===== */
.ef-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border: 2px solid var(--black); }
.ef-pillar {
  position: relative; padding: 34px 26px 30px; border-right: 2px solid var(--black); border-top: 5px solid var(--ee-blue);
  display: flex; flex-direction: column; gap: 14px; width: 100%;
  transition: background .25s ease, color .25s ease;
  min-height: 230px;
}
.ef-pillar:last-child { border-right: none; }
.ef-pillar-title { font-size: 1.2rem; letter-spacing: 0.005em; line-height: 1.15; transition: color .2s ease; }
.ef-pillar-body {
  font-size: 0.94rem; line-height: 1.5; color: var(--gray);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, color .2s ease;
}
.ef-pillar::after {
  content: "\2192"; position: absolute; top: 32px; right: 26px; color: var(--ee-blue);
  font-size: 1.3rem; opacity: 0.4; transform: translateX(0);
  transition: opacity .2s ease, transform .2s ease;
}
.ef-pillar:hover, .ef-pillar:focus-visible, .ef-pillar[aria-expanded="true"] { background: var(--black); color: var(--white); }
.ef-pillar:hover::after, .ef-pillar:focus-visible::after, .ef-pillar[aria-expanded="true"]::after { opacity: 1; transform: translateX(6px); }
.ef-pillar[aria-expanded="true"] .ef-pillar-body,
.ef-pillar:hover .ef-pillar-body,
.ef-pillar:focus-visible .ef-pillar-body {
  max-height: 160px; opacity: 1; color: #DADADA;
}
.ef-pillar[aria-expanded="true"] .ef-pillar-title,
.ef-pillar:hover .ef-pillar-title { color: var(--white); }

@media (max-width: 900px) {
  .ef-pillars { grid-template-columns: 1fr; }
  .ef-pillar { border-right: none; border-bottom: 2px solid var(--black); min-height: unset; }
  .ef-pillar:last-child { border-bottom: none; }
  .ef-pillar-body { max-height: 0; }
  .ef-pillar[aria-expanded="true"] .ef-pillar-body { max-height: 240px; }
}

/* ===== ECOSYSTEM FLOW ===== */
.ef-flow {
  display: flex; align-items: center; gap: 0; margin-top: 50px;
  overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch;
  color: var(--black);
}
.ef-flow-node {
  position: relative; font-size: clamp(0.85rem, 1.3vw, 1.05rem); letter-spacing: 0.02em;
  padding: 0 8px 0 0; white-space: nowrap; display: flex; align-items: center;
}
.ef-flow-node:not(:last-child)::after {
  content: ""; display: inline-block; width: 30px; height: 2px;
  margin: 0 8px;
  background-image: linear-gradient(90deg, currentColor 40%, transparent 40%);
  background-size: 10px 2px; background-repeat: repeat-x;
  animation: ef-march 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .ef-flow-node::after { animation: none; } }
.ef-flow-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--black); margin-right: 10px; flex-shrink: 0;
}
@keyframes ef-march { from { background-position: 0 0; } to { background-position: 20px 0; } }

/* ===== LONGEVITY CATEGORIES ===== */
.ef-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: 2px solid var(--black); }
.ef-category {
  position: relative; padding: 26px 22px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s ease, color .2s ease;
}
.ef-category:nth-child(3n) { border-right: none; }
.ef-category:nth-last-child(-n+3) { border-bottom: none; }
.ef-category-title { font-size: 1.1rem; letter-spacing: 0.005em; }
.ef-category-title::after {
  content: "\2192"; display: inline-block; margin-left: 8px; color: var(--ee-blue);
  opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease;
}
.ef-category:hover .ef-category-title::after,
.ef-category:focus-visible .ef-category-title::after,
.ef-category[aria-expanded="true"] .ef-category-title::after { opacity: 1; transform: translateX(2px); }
.ef-category-body {
  font-size: 0.88rem; line-height: 1.5; color: var(--gray);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, color .2s ease;
}
.ef-category:hover, .ef-category:focus-visible, .ef-category[aria-expanded="true"] { background: var(--black); color: var(--white); }
.ef-category[aria-expanded="true"] .ef-category-body,
.ef-category:hover .ef-category-body,
.ef-category:focus-visible .ef-category-body { max-height: 120px; opacity: 1; color: #DADADA; }

@media (max-width: 900px) {
  .ef-categories { grid-template-columns: repeat(2, 1fr); }
  .ef-category:nth-child(3n) { border-right: 2px solid var(--black); }
  .ef-category:nth-child(2n) { border-right: none; }
  .ef-category:nth-last-child(-n+3) { border-bottom: 2px solid var(--black); }
  .ef-category:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 520px) {
  .ef-categories { grid-template-columns: 1fr; }
  .ef-category { border-right: none !important; }
  .ef-category:not(:last-child) { border-bottom: 2px solid var(--black) !important; }
  .ef-category:last-child { border-bottom: none !important; }
}

/* ===== TRANSITION ===== */
.ef-transition { text-align: left; padding: 110px 0; }
.ef-eyebrow-strong { color: var(--ee-blue); }

/* ===== WHAT WE BUILD ===== */
.ef-build-statement {
  font-size: clamp(2.2rem, 6.4vw, 4.6rem); line-height: 1.03; text-transform: uppercase;
  letter-spacing: -0.01em; margin: 0;
}
.ef-build-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--black);
}
.ef-build-col { padding-right: 40px; min-width: 0; }
.ef-build-col + .ef-build-col { padding-right: 0; padding-left: 40px; border-left: 2px solid var(--black); }
.ef-build-body { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; max-width: 42ch; color: #333; margin: 0 0 26px; }
.ef-build-markets {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; letter-spacing: 0.08em; margin: 0;
}
.ef-build-markets-div { color: var(--ee-blue); }
.ef-build-flow { margin-top: 0; }
.ef-build-status {
  display: flex; align-items: center; gap: 12px;
  margin: 50px 0 0; padding-top: 26px; border-top: 1px solid var(--gray-light);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem); letter-spacing: 0.02em;
}
.ef-build-status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ee-blue); flex-shrink: 0;
  animation: ef-status-pulse 2s ease-in-out infinite;
}
@keyframes ef-status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .ef-build-status-dot { animation: none; } }

@media (max-width: 900px) {
  .ef-build-grid { grid-template-columns: 1fr; gap: 40px; }
  .ef-build-col { padding-right: 0; }
  .ef-build-col + .ef-build-col { padding-left: 0; border-left: none; border-top: 2px solid var(--black); padding-top: 40px; }
}

/* ===== TEST YOUR PRODUCT ===== */
.ef-test-section .ef-flow { margin-top: 46px; }
.ef-test-statement {
  margin: 40px 0 0; max-width: 20ch; color: var(--black);
}
.ef-test-audience {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0;
}
.ef-test-audience li {
  font-size: 0.72rem; letter-spacing: 0.03em; padding: 10px 14px;
  border: 2px solid var(--black); color: var(--black);
}
.ef-test-cta { margin-top: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ef-test-cta-sub { font-size: 0.85rem; color: var(--black); max-width: 42ch; }

@media (max-width: 640px) {
  .ef-test-audience li { font-size: 0.68rem; padding: 9px 12px; }
}

/* ===== ESTONIA ===== */
.ef-estonia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ef-estonia-copy .ef-section-title { margin-bottom: 18px; }
.ef-estonia-coords { margin-top: 26px; font-size: 0.82rem; letter-spacing: 0.04em; color: #9A9A9A; line-height: 1.7; }
.ef-estonia-flag-wrap { position: relative; width: 100%; }
.ef-estonia-flag { width: 100%; height: auto; display: block; background: var(--off-white); touch-action: pan-y; border: 2px solid rgba(255,255,255,0.15); }
.ef-estonia-flag-fallback { display: flex; flex-direction: column; width: 100%; aspect-ratio: 11/7; overflow: hidden; }
.ef-estonia-flag-fallback span { flex: 1; }

@media (max-width: 900px) {
  .ef-estonia-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ===== GROUP COMPOUNDS ===== */
.ef-compound-flow {
  display: flex; flex-wrap: wrap; gap: 14px 0; margin: 44px 0 30px; font-size: clamp(1.25rem, 2.7vw, 1.9rem);
}
.ef-compound-flow li {
  position: relative; padding-right: 30px; letter-spacing: 0.01em;
}
.ef-compound-flow li:not(:last-child)::after { content: "\2192"; margin-left: 20px; color: var(--ee-blue); }

/* ===== MANIFESTO ===== */
.ef-manifesto {
  position: relative; text-align: center; background: var(--black); color: var(--white);
  transition: background-color .6s ease, color .6s ease;
}
.ef-manifesto-beat {
  position: relative; z-index: 1; min-height: 78vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 6vw;
}
.ef-manifesto-beat--final { min-height: 60vh; }
.ef-manifesto-line {
  font-size: clamp(1.9rem, 6.2vw, 4.2rem); line-height: 1.15; text-transform: uppercase; margin: 0 0 6px;
}
.ef-manifesto-final { font-size: clamp(1.7rem, 5.2vw, 3.4rem); line-height: 1.2; }

.ef-manifesto[data-theme="black"] { background: var(--black); color: var(--white); }
.ef-manifesto[data-theme="blue"] { background: var(--ee-blue); color: var(--black); }
.ef-manifesto[data-theme="white"] { background: var(--white); color: var(--black); }
.ef-manifesto[data-theme="black"] .ef-manifesto-final { color: var(--ee-blue); }
.ef-manifesto[data-theme="blue"] .ef-dots-canvas,
.ef-manifesto[data-theme="white"] .ef-dots-canvas { opacity: 0.35; }

/* ===== ROADMAP / STATUS ===== */
.ef-status-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px;
  margin: 40px 0 50px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ef-status-grid dt { font-size: 0.7rem; letter-spacing: 0.06em; color: #9A9A9A; margin-bottom: 6px; }
.ef-status-grid dd { font-size: 0.95rem; margin: 0; font-weight: 600; }
@media (max-width: 700px) { .ef-status-grid { grid-template-columns: repeat(2, 1fr); } }

.ef-car-nav { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.ef-car-arrow {
  border: 2px solid var(--white); border-radius: 50%; width: 42px; height: 42px;
  font-size: 1.05rem; color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ef-car-arrow:hover { background: var(--ee-blue); color: var(--black); border-color: var(--ee-blue); }
.ef-car-dots { display: flex; gap: 8px; }
.ef-car-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: #444; padding: 0; }
.ef-car-dot.active { background: var(--ee-blue); }

.ef-case-card { background: var(--white); color: var(--black); padding: 40px clamp(24px, 4vw, 44px); max-width: 680px; border: 2px solid transparent; }
.ef-case-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 16px; }
.ef-case-brand { font-size: 1.4rem; }
.ef-case-cat { color: var(--gray); font-size: 0.8rem; margin-top: 6px; display: block; letter-spacing: 0.04em; font-weight: 600; }
.ef-case-body { font-size: 1rem; line-height: 1.6; color: #333; }

/* ===== CONTACT ===== */
.ef-contact-intro { margin-bottom: 44px; }
.ef-contact-title { font-size: clamp(2.1rem, 5.8vw, 3.8rem); line-height: 1; text-transform: uppercase; margin-bottom: 20px; }
.ef-contact-blocks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 2px solid var(--black);
}
.ef-contact-block {
  padding: 30px 24px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black);
  transition: background .2s ease, color .2s ease;
}
.ef-contact-block:hover { background: var(--ee-blue); }
.ef-contact-block::after {
  content: "\2192"; display: inline-block; margin-left: 8px; color: var(--ee-blue);
  opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease;
}
.ef-contact-block:hover::after { opacity: 1; transform: translateX(2px); color: var(--black); }
.ef-contact-block:nth-child(3n) { border-right: none; }
.ef-contact-block:nth-last-child(-n+3) { border-bottom: none; }
.ef-contact-block h3 { font-size: 1.05rem; margin-bottom: 10px; letter-spacing: 0.01em; }
.ef-contact-block p { font-size: 0.9rem; color: var(--gray); line-height: 1.5; font-weight: 500; transition: transform .2s ease; }
.ef-contact-block:hover p { color: var(--black); transform: translateX(2px); }
@media (max-width: 900px) {
  .ef-contact-blocks { grid-template-columns: repeat(2, 1fr); }
  .ef-contact-block:nth-child(3n) { border-right: 2px solid var(--black); }
  .ef-contact-block:nth-child(2n) { border-right: none; }
  .ef-contact-block:nth-last-child(-n+3) { border-bottom: 2px solid var(--black); }
  .ef-contact-block:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .ef-contact-blocks { grid-template-columns: 1fr; }
  .ef-contact-block { border-right: none !important; }
  .ef-contact-block:nth-last-child(-n+2) { border-bottom: 2px solid var(--black); }
  .ef-contact-block:last-child { border-bottom: none !important; }
}
.ef-contact-cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.ef-contact-email { font-size: clamp(1.1rem, 2vw, 1.5rem); border-bottom: 3px solid var(--black); padding-bottom: 3px; }
.ef-contact-email:hover { color: var(--ee-blue); border-color: var(--ee-blue); }
.ef-contact-linkedin { font-size: 1rem; color: var(--gray); display: inline-flex; align-items: center; gap: 6px; }
.ef-contact-linkedin:hover { color: var(--black); }

/* ===== FOOTER ===== */
.ef-footer { position: relative; background: var(--black); color: var(--white); padding: 70px 0 26px; overflow: hidden; }
.ef-footer--dots::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--ee-blue) 12%, transparent 13%);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  opacity: 0.5;
}
.ef-footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.ef-footer-wordmark { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.ef-footer-tag { font-size: 0.9rem; color: #B8B8B8; line-height: 1.5; margin-bottom: 12px; }
.ef-footer-signature { font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ee-blue); font-weight: 700; }
.ef-footer-links { display: flex; flex-wrap: wrap; gap: 20px 26px; max-width: 420px; }
.ef-footer-links a { font-size: 0.9rem; color: #D8D8D8; }
.ef-footer-links a:hover { color: var(--ee-blue); }
.ef-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 0.75rem; color: #7A7A7A; }

/* ===== BACK TO TOP ===== */
.ef-totop {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; height: 54px; background: var(--white); color: var(--black);
  border: 2px solid var(--black);
  opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.ef-totop[data-visible="true"] { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ef-totop-mark { font-size: 0.92rem; letter-spacing: 0.02em; line-height: 1; }
.ef-totop-cue {
  font-size: 0.55rem; letter-spacing: 0.08em; margin-top: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .2s ease, opacity .2s ease, margin-top .2s ease;
}
.ef-totop:hover, .ef-totop:focus-visible { background: var(--ee-blue); border-color: var(--ee-blue); color: var(--black); }
.ef-totop[data-visible="true"]:hover, .ef-totop[data-visible="true"]:focus-visible { transform: translateY(-4px) scale(1); }
.ef-totop:hover .ef-totop-cue, .ef-totop:focus-visible .ef-totop-cue { max-height: 14px; opacity: 1; margin-top: 3px; }

@media (max-width: 640px) {
  .ef-totop { width: 44px; height: 44px; }
  .ef-totop-mark { font-size: 0.8rem; }
  .ef-totop-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ef-totop { transition: opacity .2s ease; transform: none !important; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ef-reveal-line { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===== NO HORIZONTAL OVERFLOW GUARD ===== */
html, body { max-width: 100%; overflow-x: hidden; }
img, canvas, svg { max-width: 100%; }
