:root {
  --ink: #111;
  --text: #5c5c5c;
  --faint: #949494;
  --line: #ececec;
  --soft: #f6f6f5;
  --radius: 14px;
  /* Degular from Adobe Fonts (kit wng4aur, linked in both pages' <head>): Text for body copy, Display for large type. */
  --font-system: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "degular-text", var(--font-system);
  --font-display: "degular-display", var(--font-system);
  --sky: #4aa6ec;
  --ocean: #1a5fbf;
  --navy: #0b2a5e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 66rem; margin-left: auto; margin-right: auto; padding: 0 1.5rem; }
section[id], header[id] { scroll-margin-top: 4.5rem; }

/* Degular Display only for large type; headings and labels stay in Degular Text. */
.lede, .numbers dt, .contact .big { font-family: var(--font-display); }
h1, h2, h3 { color: var(--ink); font-size: inherit; font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: #d0d0d0; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.nav a { color: var(--faint); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .home { color: var(--ink); font-weight: 500; }
.nav span { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav .lang { margin-left: auto; }
@media (max-width: 40rem) { .nav .home { display: none; } .nav .wrap { font-size: .92rem; } .nav span { column-gap: 1rem; } }

/* Sections */
section { margin-top: 6rem; }
h2 { color: var(--faint); font-weight: 400; margin-bottom: 1.75rem; }
.note { color: var(--faint); }

/* Hero */
.hero-band {
  color: rgba(255,255,255,.86);
  background:
    radial-gradient(60rem 30rem at 92% 8%, rgba(126,196,248,.75), transparent 60%),
    radial-gradient(50rem 30rem at 15% 110%, rgba(6,26,66,.85), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--ocean) 52%, var(--sky) 100%);
}
.hero { display: grid; grid-template-columns: 1fr 14.25rem; gap: 4rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
.hero h1 { color: rgba(255,255,255,.7); font-weight: 400; margin-bottom: 1rem; }
.lede { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: 0; margin-bottom: 1.25rem; }
:lang(es) .lede { font-size: clamp(1.6rem, 3vw, 2.3rem); }
/* Rotating tagline: all phrases share one grid cell, so the box keeps the tallest one's height and nothing below jumps. */
.lede .lead-in { display: block; color: rgba(255,255,255,.62); }
.rotate { display: grid; font-weight: 700; font-size: 1.15em; line-height: 1.08; }
.rotate > span { grid-area: 1 / 1; opacity: 0; animation: rotate-phrase 10.5s infinite both; }
.rotate > span:first-child { opacity: 1; }
.rotate > span:first-child { animation-delay: -.35s; } /* start already faded in */
.rotate > span:nth-child(2) { animation-delay: 3.15s; }
.rotate > span:nth-child(3) { animation-delay: 6.65s; }
@keyframes rotate-phrase {
  0% { opacity: 0; transform: translateY(.3em); }
  3%, 30% { opacity: 1; transform: none; }
  33.33%, 100% { opacity: 0; transform: translateY(-.3em); }
}
@media (prefers-reduced-motion: reduce) { .rotate > span { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .sub { color: #fff; font-size: 1.15rem; line-height: 1.5; max-width: 34rem; margin-bottom: 0; }
.hero a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.hero a:hover { text-decoration-color: #fff; }
.hero a:focus-visible { outline-color: #fff; }
.hero .button { background: #fff; color: var(--navy); }
.hero .button:hover { background: #e8f2fd; }
.avail { font-size: .92rem; max-width: 32rem; margin-bottom: .35rem; }
.places { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 40px -14px rgba(4,20,52,.6); outline: 1px solid rgba(255,255,255,.25); outline-offset: -1px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 2rem 0 1.75rem; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 500; }
.button:hover { background: #333; }
@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3rem; }
  .portrait { width: 11rem; border-radius: 50%; order: -1; }
}

/* Logos: two marquees with the same logos, moving in opposite directions */
.logos { margin-top: 4.5rem; }
.logos h2 { font-size: .9rem; margin-bottom: 1.25rem; }
.marquees { display: grid; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Vertical padding gives logos with negative margins (Orion, AutoZone, Disney) room inside the clip; the spacing between rows is unchanged. */
.marquee { padding: .75rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0 3.25rem 0 0; display: flex; align-items: center; gap: 3.25rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee img { height: 26px; width: auto; max-width: none; filter: brightness(0); opacity: .55; }
.marquee img[src$="/gap.svg"] { filter: grayscale(1); opacity: .5; height: 34px; }
.marquee img[src$="/autozone.svg"] { height: 54px; margin: -14px 0; }
.marquee img[src$="/disney.svg"] { height: 36px; margin: -5px 0; }
.marquee img[src$="/ulta-beauty.svg"] { height: 32px; }
.marquee img[src$="/tec.webp"] { height: 34px; }
.marquee img[src$="/orion-startups.webp"] { height: 42px; margin: -8px 0; opacity: .7; }
.marquee img[src$="/unitedhealth-group.svg"] { height: 16px; }
.marquee img[src$="/backtrack.webp"] { height: 28px; }
@media (max-width: 40rem) {
  .marquee ul { gap: 2.25rem; padding-right: 2.25rem; }
  .marquee img { height: 20px; }
  .marquee img[src$="/unitedhealth-group.svg"] { height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee .track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; padding: 0; }
  .marquee ul[aria-hidden], .marquee.reverse { display: none; }
}

/* Work */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--soft); outline: 1px solid rgba(0,0,0,.06); outline-offset: -1px; margin-bottom: 1.1rem; }
.card.wide { grid-column: 1 / -1; }
.grid.three { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; font-size: .95rem; }
@media (max-width: 56rem) { .grid.three { grid-template-columns: 1fr 1fr; } }
.card.wide img { aspect-ratio: 2 / 1; }
.card.wide p { max-width: 40rem; }
/* Full-width card with the image on the left and the text centred beside it */
.card.side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 2.5rem; }
.card.side img { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
.card.side > :not(img) { grid-column: 2; }
.card.side h3 { grid-row: 2; } .card.side p { grid-row: 3; } .card.side .metrics { grid-row: 4; }
.card h3 { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.card h3 span { color: var(--faint); font-weight: 400; white-space: nowrap; }
.card p { margin-bottom: .5rem; }
/* Card results as blue badges: the number pops, the label stays readable. */
.metrics { list-style: none; margin: .85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.metrics li { display: inline-block; padding: .38rem .8rem; border-radius: .9rem;
  background: #e8f1fc; color: var(--navy); font-size: .86rem; font-weight: 500; line-height: 1.25; }
.metrics strong { color: var(--ocean); font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.metrics a { color: inherit; text-decoration: none; }
.metrics a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .grid, .grid.three { grid-template-columns: 1fr; gap: 2.75rem; } .card.side { display: block; } .card.side img { margin-bottom: 1.1rem; } .card.wide img { aspect-ratio: 16 / 10; } }

/* Shipping chart */
.statement { color: var(--ink); font-size: 1.2rem; line-height: 1.45; max-width: 40rem; margin-bottom: 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 12rem)); gap: 1.5rem 2.5rem; margin-bottom: 2rem; }
.stats div { display: flex; flex-direction: column; font-size: .92rem; }
.stat { font-family: var(--font-display); color: var(--ink); font-size: 2.4rem; line-height: 1.1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.stat.accent { color: var(--ocean); }
.pr-chart { margin: 0; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tick { fill: var(--faint); font-size: 12px; font-family: var(--font-text); }
.chart .bar { fill: #c9d1dd; }
.variant { margin-bottom: 4rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.variant-label { color: var(--ink); font-weight: 500; margin-bottom: 1.5rem; }
.chart .bar.after { fill: var(--ocean); }
.chart .marker { stroke: var(--ink); stroke-width: 1; }
.chart .marker-label { fill: var(--ink); font-size: 13px; font-family: var(--font-text); }
/* Hover layer over the chart: one column per bar; the shade darkens the bar, the tip shows its value. */
.plot { position: relative; }
.cols { position: absolute; display: flex; }
.cols .c { position: relative; flex: 1 1 0; outline: none; }
.cols .c i { position: absolute; left: 1px; right: 1px; bottom: 0; border-radius: 4px 4px 0 0; background: rgba(11,42,94,.22); opacity: 0; }
.cols .tip { position: absolute; left: 50%; transform: translate(-50%, -8px); z-index: 1; display: flex; flex-direction: column; gap: .1rem;
  padding: .45rem .65rem; border-radius: 10px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.3;
  white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.18); pointer-events: none; }
/* Hidden tips are display:none (not just transparent) so they never widen the page on phones. */
.cols .tip { display: none; }
.cols .tip small { color: rgba(255,255,255,.62); font-size: .74rem; font-weight: 400; }
.cols .c.l .tip { left: 0; transform: translate(0, -8px); }
.cols .c.r .tip { left: auto; right: 0; transform: translate(0, -8px); }
.cols .c:hover, .cols .c:focus { z-index: 2; }
.cols .c:hover i, .cols .c:focus i { opacity: 1; }
.cols .c:hover .tip, .cols .c:focus .tip { display: flex; }
@media (max-width: 40rem) {
  .cols .c.ml .tip { left: 0; right: auto; transform: translate(0, -8px); }
  .cols .c.mr .tip { left: auto; right: 0; transform: translate(0, -8px); }
}
.pr-chart figcaption { color: var(--faint); font-size: .85rem; margin-top: .75rem; }
.numbers-table { margin-top: 1rem; font-size: .9rem; }
.numbers-table summary { cursor: pointer; color: var(--text); }
.numbers-table table { border-collapse: collapse; margin-top: .75rem; font-variant-numeric: tabular-nums; }
.numbers-table th, .numbers-table td { text-align: left; padding: .2rem 2rem .2rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 40rem) { .stats { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; } .stat { font-size: 1.7rem; } .chart .tick { font-size: 20px; } .chart .marker-label { font-size: 22px; } }

/* Services: right under the hero. Four numbered cards in a 2x2 grid; the flagship (prototype to production) is navy, card 04 folds in everything else. */
.services { margin-top: 4.5rem; }
.services h2 { margin-bottom: .4rem; }
.svc-head { font-family: var(--font-display); color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: 0; margin: 0 0 1.75rem; }
.svc { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: svc; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.svc li { counter-increment: svc; background: var(--soft); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.5rem; font-size: .92rem; line-height: 1.55; display: flex; flex-direction: column; }
.svc li::before { content: counter(svc, decimal-leading-zero); color: var(--ocean); font-weight: 700; font-size: .8rem; letter-spacing: .06em; margin-bottom: 1.6rem; }
.svc h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: 0; margin-bottom: .6rem; }
.svc .tag { align-self: flex-start; background: #e8f1fc; color: var(--ocean); font-weight: 600; font-size: .78rem; padding: .22rem .65rem; border-radius: 1rem; margin-bottom: .85rem; line-height: 1.35; }
.svc p:last-child { margin: 0; }
.svc .lead { background: var(--navy); color: rgba(255,255,255,.78); }
.svc .lead::before { color: var(--sky); }
.svc .lead h3 { color: #fff; }
.svc .lead .tag { background: rgba(255,255,255,.14); color: #fff; }
/* Card 06: an open invitation that links to the calendar; the whole card is the link. */
.svc .ask { position: relative; background: none; border: 1px dashed #c9d6e8; }
.svc .ask:hover { background: #f3f8fe; border-color: var(--ocean); }
.svc .ask p { margin-bottom: .7rem; }
.svc .more { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.svc .more li { counter-increment: none; display: block; background: #e8f1fc; color: var(--navy); border-radius: 1rem; padding: .2rem .7rem; font-size: .8rem; font-weight: 500; line-height: 1.4; }
.svc .more li::before { content: none; }
.svc .ask .go { margin-top: auto; color: var(--ocean); font-weight: 600; text-decoration: none; }
.svc .ask .go::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc .ask:hover .go { text-decoration: underline; }
.services .note { font-size: .88rem; margin: 0; }
@media (max-width: 40rem) { .svc { grid-template-columns: 1fr; } .svc li::before { margin-bottom: .8rem; } }

/* Numbers */
.group { color: var(--faint); font-weight: 400; margin-bottom: 1.25rem; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; margin: 0 0 3rem; }
.numbers:last-child { margin-bottom: 0; }
.numbers.four { grid-template-columns: repeat(4, 1fr); }
.numbers dt { color: var(--ink); font-size: 1.9rem; line-height: 1.2; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.numbers dd { margin: .3rem 0 0; font-size: .95rem; }
@media (max-width: 48rem) { .numbers, .numbers.four { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; } .numbers dt { font-size: 1.5rem; } }

/* Experience */
.timeline { display: grid; grid-template-columns: 7rem 1fr; gap: .35rem 1rem; margin: 0 0 1.5rem; max-width: 36rem; }
.timeline dt { color: var(--faint); font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; }
.timeline .org { color: var(--ink); margin-top: 1.25rem; }
.timeline .org:first-of-type { margin-top: 0; }

/* About */
.prose { max-width: 36rem; }

/* Tools */
.skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: 48rem; }
.skills li { background: var(--soft); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; color: var(--text); }

/* FAQ */
.faq { max-width: 36rem; margin: 0; }
.faq dt { color: var(--ink); }
.faq dd { margin: 0 0 1.25em; }

/* Contact */
.contact .big { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: 0; margin-bottom: 0; }
.contact .cta { margin: 1.5rem 0 1.25rem; }

footer { margin-top: 6rem; padding-top: 1.5rem; padding-bottom: 4rem; border-top: 1px solid var(--line); color: var(--faint); display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--ink); }
