/* ==========================================================================
   LINES — styles (v3, adapted from lines_web_export)
   Keeps the friend's editorial layout; adds scroll reveals, typing effect,
   custom cursor, and CMS-friendly hooks.
   ========================================================================== */

:root {
  --bg: #e7e4de;
  --bg-alt: #dad6cf;
  --text: #1e1f1c;
  --muted: #6f716b;
  --accent: #4e5b55;
  --accent-dark: #2f3a36;
  --line: #c8c5bf;
  --max: 1180px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: none;
}
ul,
ol {
  list-style: none;
}
em {
  font-style: normal;
}
::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
}

/* ---- Floating WhatsApp button --------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 4px 8px rgba(0, 0, 0, 0.12);
}
.whatsapp-fab svg {
  display: block;
  width: 100%;
  height: 100%;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 620px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ---- Skip link -------------------------------------------------------- */
.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 1rem;
}

/* ---- Noise / progress / cursor --------------------------------------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent-dark);
  z-index: 150;
  transition: width 0.1s linear;
}
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 160;
}
.cursor {
  width: 32px;
  height: 32px;
  border: 1px solid var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    background-color 0.3s var(--ease), opacity 0.3s var(--ease);
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor.is-hover {
  width: 56px;
  height: 56px;
  background: var(--text);
}
.cursor.is-hide {
  opacity: 0;
}
@media (hover: none), (pointer: coarse) {
  body,
  a,
  button {
    cursor: auto;
  }
  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 64px 0;
}
.main-nav {
  display: flex;
  gap: 58px;
}
.nav-link,
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.nav-link {
  position: relative;
  overflow: hidden;
  display: inline-block;
  line-height: 1;
  padding: 0.25rem 0;
}
.nav-link > span {
  display: inline-block;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
  will-change: transform;
}
.nav-link::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0.25rem;
  opacity: 0;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
  color: var(--accent);
  pointer-events: none;
  will-change: transform, opacity;
}
.nav-link:hover > span {
  transform: translateY(-140%);
  opacity: 0;
}
.nav-link:hover::before {
  transform: translateY(0);
  opacity: 1;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.brand {
  display: block;
  text-align: right;
}
/* letter-spacing adds trailing space after the last letter — pull it back
   so "LINES" sits flush with the header's right edge and "COMUNICACIÓN"
   lines up exactly underneath its last letter */
.brand-name {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.34em;
  font-weight: 500;
  margin-right: -0.34em;
}
.brand-sub {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  margin-right: -0.38em;
}

/* Hamburger toggle (hidden on desktop, shown on mobile) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: none;
  border: 0;
  position: relative;
  z-index: 30;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.3px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.3px) rotate(-45deg);
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  padding-top: 180px;
  background: var(--bg);
}
.hero-lines {
  position: absolute;
  right: -4%;
  top: -6%;
  width: 84%;
  height: 100%;
  opacity: 1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(231, 228, 222, 0.92) 31%,
    rgba(231, 228, 222, 0.22) 70%,
    rgba(231, 228, 222, 0.08) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Hero lines: static base + sweeping beam overlay --------------- */
/* fade mask is applied inline on the SVG groups — base + beam + dots
   are brightest at the convergence point and vanish toward the edges */
.hero-lines__base line {
  stroke: #b4b1ab;
  stroke-width: 1;
  opacity: 1;
}
.hero-lines__beam line {
  stroke: #4e5b55;
  stroke-width: 1.6;
  stroke-dasharray: 280 2200;
  stroke-dashoffset: 2200;
  opacity: 0;
  animation: lineSweep 7s linear infinite;
  will-change: stroke-dashoffset, opacity;
}
/* stagger the beams so they don't all sync */
.hero-lines__beam line:nth-child(4n + 1) {
  animation-delay: 0s;
  animation-duration: 7.6s;
}
.hero-lines__beam line:nth-child(4n + 2) {
  animation-delay: -1.8s;
  animation-duration: 9s;
}
.hero-lines__beam line:nth-child(4n + 3) {
  animation-delay: -3.6s;
  animation-duration: 8.3s;
}
.hero-lines__beam line:nth-child(4n + 4) {
  animation-delay: -5.2s;
  animation-duration: 9.8s;
}

@keyframes lineSweep {
  0% {
    stroke-dashoffset: 2200;
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  82% {
    opacity: 0.95;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.hero-lines__dots circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 4.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-lines__dots circle:nth-child(5n + 1) {
  animation-delay: 0s;
  animation-duration: 4.2s;
}
.hero-lines__dots circle:nth-child(5n + 2) {
  animation-delay: -0.9s;
  animation-duration: 5.1s;
}
.hero-lines__dots circle:nth-child(5n + 3) {
  animation-delay: -1.8s;
  animation-duration: 4.7s;
}
.hero-lines__dots circle:nth-child(5n + 4) {
  animation-delay: -2.7s;
  animation-duration: 5.5s;
}
.hero-lines__dots circle:nth-child(5n) {
  animation-delay: -3.6s;
  animation-duration: 4.4s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}
.hero h1 {
  margin: 0 0 30px;
  font-size: 44px;
  line-height: 1.17;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 660px;
}
.hero h1 .reveal-line {
  display: block;
  overflow: hidden;
  padding-block: 0.05em;
}
.hero h1 .reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.hero.is-ready h1 .reveal-line > span {
  transform: translateY(0);
}
.hero.is-ready h1 .reveal-line:nth-of-type(1) > span {
  transition-delay: 0.15s;
}
.hero.is-ready h1 .reveal-line:nth-of-type(2) > span {
  transition-delay: 0.3s;
}
.hero.is-ready h1 .reveal-line:nth-of-type(3) > span {
  transition-delay: 0.45s;
}

/* typing word inside the hero headline */
.typing {
  display: inline-block;
  min-width: 11ch;
  white-space: nowrap;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  vertical-align: baseline;
  position: relative;
}
.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.78em;
  background: currentColor;
  margin-left: 0.08em;
  transform: translateY(0.02em);
  animation: blink 1s steps(2, end) infinite;
  vertical-align: baseline;
}

.rule {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 34px;
  transform-origin: left;
  animation: drawLine 1s var(--ease-out) 0.8s both;
  opacity: 0;
}
.small-rule {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin: 10px 0 24px;
}

.hero p {
  max-width: 420px;
  margin: 0 0 34px;
  font-size: 17px;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}
.hero .button {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

/* ---- Buttons --------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 17px 26px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  border: 1px solid var(--accent);
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(47, 58, 54, 0.4);
}
.button .arrow {
  transition: transform 0.35s var(--ease);
  display: inline-flex;
}
.button:hover .arrow {
  transform: translateX(6px);
}

.button.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  min-width: 230px;
  justify-content: space-between;
}
.button.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---- Sections -------------------------------------------------------- */
.section {
  padding: 64px 0;
}
.intro-section {
  background: var(--bg-alt);
}
.two-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: end;
}
.intro-block {
  max-width: 720px;
}
.intro-block .small-rule {
  margin-bottom: 22px;
}
.intro-text {
  font-size: 17px;
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
  color: var(--text);
}

/* ---- Services -------------------------------------------------------- */
/* unified background with the intro section above so "Qué hacemos"
   reads as one block, distinct from the directors section below */
.intro-section {
  padding-bottom: 32px;
}
.services-section {
  background: var(--bg-alt);
  padding-top: 28px;
  padding-bottom: 96px;
}
.services-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: start;
}
.services-aside {
  position: sticky;
  top: 110px;
}
.services-net {
  width: 100%;
  height: auto;
  display: block;
}
/* signal pulses travel along edges, like packets on a network */
.services-net__signals line {
  stroke-dasharray: 36 600;
  stroke-dashoffset: 600;
  opacity: 0;
  animation: netSignal 6s linear infinite;
  will-change: stroke-dashoffset, opacity;
}
.services-net__signals line:nth-child(7n + 1) { animation-delay: 0s;    animation-duration: 5.6s; }
.services-net__signals line:nth-child(7n + 2) { animation-delay: -0.9s; animation-duration: 6.4s; }
.services-net__signals line:nth-child(7n + 3) { animation-delay: -1.8s; animation-duration: 5.9s; }
.services-net__signals line:nth-child(7n + 4) { animation-delay: -2.7s; animation-duration: 6.7s; }
.services-net__signals line:nth-child(7n + 5) { animation-delay: -3.6s; animation-duration: 5.8s; }
.services-net__signals line:nth-child(7n + 6) { animation-delay: -4.4s; animation-duration: 6.5s; }
.services-net__signals line:nth-child(7n)     { animation-delay: -5.1s; animation-duration: 6.1s; }

@keyframes netSignal {
  0%   { stroke-dashoffset: 600; opacity: 0; }
  10%  { opacity: 0.95; }
  85%  { opacity: 0.95; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

.services-net__nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 4.8s ease-in-out infinite;
  opacity: 0.7;
  will-change: transform, opacity;
}
.services-net__nodes circle.hub {
  opacity: 1;
  animation-duration: 3.2s;
}
.services-net__nodes circle:nth-child(5n + 1) { animation-delay: 0s; }
.services-net__nodes circle:nth-child(5n + 2) { animation-delay: -0.8s; }
.services-net__nodes circle:nth-child(5n + 3) { animation-delay: -1.7s; }
.services-net__nodes circle:nth-child(5n + 4) { animation-delay: -2.5s; }
.services-net__nodes circle:nth-child(5n)     { animation-delay: -3.4s; }

.services-list {
  display: flex;
  flex-direction: column;
}
.service-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 28px;
  row-gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background-color 0.4s var(--ease);
}
.service-card:first-child {
  border-top: 0;
  padding-top: 4px;
}
.service-card .icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  align-self: start;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .icon {
  transform: rotate(-4deg) scale(1.06);
}
.service-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0;
}
.service-card .small-rule {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
}

/* descriptions hidden by default, reveal on hover / tap */
.service-card .service-desc {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), max-height 0.5s var(--ease),
    transform 0.35s var(--ease), margin-top 0.35s var(--ease);
  margin-top: 0;
  max-width: 560px;
}
.service-card:hover .service-desc,
.service-card.is-open .service-desc {
  opacity: 1;
  max-height: 320px;
  transform: none;
  margin-top: 12px;
}

/* ---- Directors ------------------------------------------------------- */
.directors-section {
  background: var(--bg);
  padding-top: 42px;
}
.directors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 8px;
}
.director-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
}
.director-card + .director-card {
  border-left: 1px solid var(--line);
  padding-left: 58px;
}
.portrait {
  width: 160px;
  height: 175px;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform 1.6s var(--ease), filter 0.6s var(--ease);
}
.director-card:hover .portrait img {
  transform: scale(1.05);
  filter: grayscale(0.2) contrast(1);
}
.director-card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 2px;
  font-weight: 400;
}
.role {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}
.director-card p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  max-width: 340px;
}

/* ---- Contact strip --------------------------------------------------- */
.contact-strip {
  background: var(--accent);
  color: #fff;
  padding: 46px 0;
}
.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-strip h2 {
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  padding: 34px 0;
}
.footer-wrap {
  display: grid;
  grid-template-columns: 170px 1.2fr 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-brand .brand-name {
  font-size: 25px;
}
.footer-brand .brand-sub {
  font-size: 9px;
}
.site-footer p,
.footer-links a {
  font-size: 12px;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 36px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-wrap: wrap;
}
.footer-links a {
  transition: color 0.3s var(--ease);
}
.footer-links a:hover {
  color: var(--accent);
}
.socials {
  display: flex;
  gap: 28px;
  font-size: 25px;
  align-items: center;
}
.socials a {
  transition: color 0.3s var(--ease);
}
.socials a:hover {
  color: var(--accent);
}
.socials a:first-child {
  font-weight: 700;
  font-size: 24px;
}

/* ---- Reveal animations ---------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- Keyframes ------------------------------------------------------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes drawLine {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes heroDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(-1.8%, 0.6%, 0) scale(1.035) rotate(-0.4deg);
  }
  100% {
    transform: translate3d(-3%, -0.4%, 0) scale(1.055) rotate(0.3deg);
  }
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 1000px) {
  .container {
    width: min(var(--max), calc(100% - 48px));
  }
  .site-header {
    padding: 32px 24px 0;
  }
  .main-nav {
    gap: 28px;
  }
  .hero {
    padding-top: 150px;
    min-height: 620px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-lines {
    width: 110%;
    right: -28%;
  }
  .two-cols,
  .directors-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-aside {
    display: none;
  }
  .director-card + .director-card {
    border-left: 0;
    padding-left: 0;
  }
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-wrap {
    align-items: flex-start;
    gap: 32px;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .site-header {
    height: auto;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
  }

  /* hide the inline nav, show hamburger */
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }

  /* full-screen overlay when menu is open */
  .site-header.is-menu-open {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-menu-open .main-nav {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 3rem 24px;
    background: var(--bg);
    overflow-y: auto;
  }
  .site-header.is-menu-open .main-nav .nav-link {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
  }
  .site-header.is-menu-open .main-nav .nav-link::before {
    display: none;
  }
  .site-header.is-menu-open .main-nav .nav-link > span {
    transform: none !important;
    opacity: 1 !important;
  }

  .nav-link {
    font-size: 10px;
  }
  .nav-link::before {
    display: none;
  }
  .nav-link > span {
    transform: none !important;
    opacity: 1 !important;
  }
  .brand-name {
    font-size: 24px;
  }
  .hero {
    padding-top: 128px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero p {
    font-size: 15px;
  }
  .typing {
    min-width: 8ch;
  }
  .services-layout {
    gap: 28px;
  }
  .service-card {
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    padding: 22px 0;
  }
  .service-card h3 {
    font-size: 22px;
  }
  .service-card .icon {
    width: 32px;
    height: 32px;
  }
  .director-card {
    grid-template-columns: 1fr;
  }
  .phrase-section h2,
  .contact-strip h2 {
    font-size: 28px;
  }
  .phrase-wrap {
    gap: 24px;
  }
  .portrait {
    width: 100%;
    max-width: 200px;
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 .reveal-line > span {
    transform: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero-lines {
    animation: none;
  }
}
