/* ==========================================================================
   dytch.work
   Pink, but dark. On a light background pink reads as cute; against near-black
   it reads as a deliberate accent, which is the difference between a portfolio
   somebody hires from and one they find sweet.
   ========================================================================== */

:root {
  --ink:        #0F0A0E;   /* near black, warmed towards plum */
  --ink-2:      #171015;
  --surface:    #1B1219;
  --surface-2:  #221721;
  --line:       #33202D;
  --line-soft:  #2A1A25;

  --text:       #F6EDF2;
  --muted:      #B49AA8;
  --faint:      #7C6673;

  --pink:       #FF4D8D;
  --pink-soft:  #FF9EC4;
  --pink-deep:  #D92E6D;
  --pink-glow:  rgba(255, 77, 141, .22);

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* A class that sets `display` outranks the hidden attribute, so anything marked hidden and
   also styled as a button renders anyway. This is what keeps `hidden` meaning hidden. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* Texture, so the flat dark does not look like an unstyled page. */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -8%, var(--pink-glow), transparent 62%),
    radial-gradient(48rem 34rem at 92% 6%, rgba(217, 46, 109, .14), transparent 60%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--pink); color: #1A0710;
  box-shadow: 0 8px 24px -10px var(--pink);
}
.btn-primary:hover { background: var(--pink-soft); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--pink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-big { font-size: 16px; padding: 16px 30px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: 13.5px; font-weight: 500; color: var(--muted);
  background: rgba(255,255,255,.02);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #46D07F;
  box-shadow: 0 0 0 3px rgba(70, 208, 127, .18);
}

.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 12px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(15, 10, 14, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, var(--pink), var(--pink-deep));
  color: #1A0710; font-family: var(--display); font-weight: 700; font-size: 17px;
}
.brand-mark.sm { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 0; }
.hero-in { max-width: 860px; }
.hero h1 {
  font-size: clamp(38px, 6.6vw, 68px); font-weight: 700; margin: 20px 0 0;
}
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .l2 { color: var(--muted); font-weight: 500; }
.hero h1 em {
  font-style: normal; color: var(--text);
  background: linear-gradient(100deg, var(--pink-soft), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { color: var(--muted); font-size: clamp(16.5px, 1.7vw, 19px); max-width: 56ch; margin-top: 22px; }

.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 40px;
  padding: 0; margin: 34px 0 0;
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--display); font-size: 26px; font-weight: 700; }
.facts span { font-size: 13px; color: var(--faint); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- logo strip ---------- */
.strip {
  margin-top: clamp(52px, 8vw, 88px);
  padding: 22px 0;
  border-block: 1px solid var(--line-soft);
}
/* The rails run the full width, the moving part does not. Capping the window to the content
   column keeps it narrower than a single pass of the logos, which is what guarantees a logo is
   never on screen beside its own copy. */
.strip-view {
  max-width: calc(var(--wrap) - var(--gut) * 2);
  margin-inline: auto;
  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);
}
.strip-row { display: flex; gap: 18px; width: max-content; animation: slide linear infinite; }
/* -50% exactly, because the set is rendered twice; anything else shows a seam. */
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip:hover .strip-row { animation-play-state: paused; }

.chip {
  flex: 0 0 auto; display: grid; place-items: center;
  /* Wider than tall, matching the logo canvases. A square chip gives a 2:1 wordmark nowhere to
     go, which is what made FruitVille read as half the size of the badges beside it. */
  width: 128px; height: 92px; border-radius: 16px;
  background: #FFF6FA; border: 1px solid var(--line-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* A light chip on purpose. Half of these marks are dark, and on a dark page they would simply
   disappear; the chip is what lets one strip hold eleven unrelated logos. */
/* Sizing lives in the images, not here. Each one is centred on a canvas of exactly this shape
   with its scale already baked in, because object-fit ignores intrinsic size and respects only
   aspect ratio, so a percentage here could not tell a dense badge from a sparse wordmark. */
.chip img { width: 100%; height: 100%; object-fit: contain; }
.chip.mono {
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em;
  color: #8C4763; background: linear-gradient(150deg, #FFE3EE, #FFC9DE);
}
.chip:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px var(--pink); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 108px) 0; }
.head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.head.centred { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.head p { color: var(--muted); margin-top: 14px; }

.about-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.about-in .head { margin-bottom: 0; }
.about-copy p { color: var(--muted); }
.about-copy p + p { margin-top: 18px; }
.about-copy strong { color: var(--text); font-weight: 600; }
@media (max-width: 800px) { .about-in { grid-template-columns: 1fr; } }

/* ---------- strength cards ---------- */
/* Two by two, not auto-fit. There are exactly four of these, and auto-fit lands on three
   across at this width, stranding the fourth alone against a half page of nothing. */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 26px 24px;
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.card .ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 77, 141, .12); color: var(--pink);
  font-size: 18px; margin-bottom: 16px;
}
.card ul { list-style: none; padding: 0; margin: 0; }
.card li {
  color: var(--muted); font-size: 14.5px; line-height: 1.6;
  padding-left: 18px; position: relative;
}
.card li + li { margin-top: 9px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink); opacity: .65;
}

/* ---------- experience ---------- */
.roles { display: grid; gap: 12px; }
.role {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 16px 20px;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.role:hover { transform: translateX(4px); border-color: var(--line); background: var(--surface-2); }
.role .chip { width: 86px; height: 62px; border-radius: 13px; }
.role .chip.mono { font-size: 19px; }
.role-name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.role-title { color: var(--muted); font-size: 14px; }
.role-title a { color: var(--pink-soft); border-bottom: 1px solid rgba(255,158,196,.35); }
.role-title a:hover { color: var(--pink); }
.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.tag.now { background: rgba(70, 208, 127, .12); color: #6FE0A2; }
.tag.past { background: rgba(255,255,255,.05); color: var(--faint); }
@media (max-width: 640px) {
  .role { grid-template-columns: 72px 1fr; row-gap: 10px; }
  .role .chip { width: 72px; height: 52px; border-radius: 11px; }
  .role .chip.mono { font-size: 16px; }
  .tag { grid-column: 2; justify-self: start; }
}

/* ---------- plugins ---------- */
.plug-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
/* The whole card is the link. A small "view" affordance inside it would be a smaller target
   for no reason, when the entire card is already the thing being pointed at. */
.plug {
  display: block;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 20px 22px;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.plug:hover { transform: translateY(-3px); border-color: var(--pink); background: var(--surface-2); }
.plug h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--pink-soft);
  display: flex; align-items: center; gap: 7px;
}
.plug-go { font-size: 13px; opacity: .5; transition: opacity .25s, transform .25s var(--ease); }
.plug:hover .plug-go { opacity: 1; transform: translate(2px, -2px); }
.plug p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- toolbox ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tool {
  border: 1px solid var(--line-soft); background: var(--surface);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; color: var(--muted);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.tool:hover { border-color: var(--pink); color: var(--text); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-in { max-width: 620px; margin-inline: auto; }
.contact h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; }
.contact p { color: var(--muted); margin: 18px auto 0; }
.contact-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.small { font-size: 13px; color: var(--faint); margin-top: 18px; }
.small-note { font-size: 15px; margin-top: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 26px 0; }
.foot-in { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--faint); }
.foot-r { margin-left: auto; }
@media (max-width: 560px) {
  .foot-in { flex-wrap: wrap; justify-content: center; text-align: center; }
  .foot-r { margin-left: 0; width: 100%; }
}

/* ---------- reveal ---------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  /* 128px chips left barely two and a half on screen, so the strip stopped reading as a
     moving row and looked like a few stray cards. */
  .strip .chip { width: 104px; height: 75px; border-radius: 13px; }
  .strip-row { gap: 14px; }

  /* 11.5px is small for a badge that carries the only status on the row. */
  .tag { font-size: 12px; padding: 5px 10px; }

  /* An inline link is an 18px tall target otherwise, which is a miss on a phone. */
  .role-title a { display: inline-block; padding-block: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .strip-row { animation: none !important; }
  .rise { opacity: 1; transform: none; }
}
