/* Braindance and Stockhold company sites. One stylesheet, copied into both.
   Design language taken from the Email Agency Directory (braindance/assets/style.css):
   - White, black and grey only. One black panel per page.
   - One face, Inter, self-hosted. Sentence case everywhere, including the wordmark.
   - Hairlines at #e8e8e8, ink at #111, grey at #565656 (7.4:1 on white).
   - 12px on panels and grids, 8px on controls.
   - Hover is a quiet wash, never an inversion.
   - The hero carries one quiet line drawing that turns slowly; one line of it is in ink. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #565656;
  --line: #e8e8e8;
  --line-strong: #d6d6d6;
  --drawing: #d9d9d9;
  --hover: #f6f6f6;
  --inverse: #0d0d0d;
  --inverse-muted: #cfcfcf;
  --inverse-line: #2e2e2e;
  --wrap: 72rem;
  --measure: 62ch;
  --sans: 'Inter', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --tap: 2.75rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
/* The name is the logo: no icon beside it. */
.brand {
  display: inline-flex; align-items: center; min-height: var(--tap);
  color: var(--ink); text-decoration: none;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.025em;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: none; gap: 0 1.5rem; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.site-nav ul a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .4em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap);
  cursor: pointer; line-height: 1.2; text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-size: .9375rem; font-weight: 500;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: .8rem 1.3rem; border-radius: var(--radius-sm);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { background: #333; border-color: #333; text-decoration: none; }
.button-small { min-height: 2.5rem; padding: .55rem 1rem; font-size: .875rem; }
.button-light { background: #fff; color: var(--ink); border-color: #fff; }
.button-light:hover { background: #e9e9e9; border-color: #e9e9e9; }
.more { text-decoration: none; font-weight: 500; font-size: .9375rem; display: inline-flex; align-items: center; min-height: var(--tap); }
/* The arrow is drawn, not typed: the Inter subset has no arrow glyph, and a screen reader would read it out. */
.more::after {
  content: ""; flex: none; width: .85em; height: .85em; margin-left: .4em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.more:hover::after { transform: translateX(3px); }
.more:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; padding: 3.5rem 0 3rem; }
.hero-copy { position: relative; z-index: 1; max-width: 38rem; }
h1 {
  font-size: clamp(2.25rem, 2.4vw + 1.5rem, 3.75rem); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.08; margin: 0 0 1.5rem;
  text-wrap: balance;
}
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 46ch; text-wrap: pretty; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 2.25rem; }
h1 .soft { color: #8a8a8a; }

/* Hero visual: the live drawing (canvas or inline SVG), with a still drawing for anyone without
   scripts. On phones it sits under the copy; from 900px it sits to the right of it. */
.hero-visual { position: relative; width: min(100%, 21rem); aspect-ratio: 1; margin: 3rem 0 0; pointer-events: none; }
.hero-visual > img, .hero-visual > svg, .hero-visual > canvas { display: block; width: 100%; height: 100%; }
.hero-visual > canvas { display: none; }
.hero-visual.is-live > canvas { display: block; }
.hero-visual.is-live > img { display: none; }
.stack rect { fill: none; stroke: var(--drawing); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.stack .ink { stroke: var(--ink); stroke-width: 1.6; }

/* Entrance: the copy rises in, line by line; the drawing fades up behind it */
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .14s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero h1 .soft { animation: fade 1.1s ease .45s both; }
.hero-visual { animation: fade 1.4s ease .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }

/* Sections */
.section { padding: 1.5rem 0 1rem; }
.section-head { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-bottom: 1.5rem; }
h2 {
  font-size: clamp(1.375rem, .5vw + 1.2rem, 1.625rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.25; margin: 0; text-wrap: balance;
}
.section-head p { color: var(--muted); margin: .5rem 0 0; max-width: var(--measure); }

/* Tiles: numbered, hairlines between, one rounded frame around */
.tiles {
  list-style: none; display: grid; grid-template-columns: 1fr;
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  counter-reset: tile;
}
.tiles li {
  counter-increment: tile;
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem 1.35rem 1.6rem; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.tiles li:last-child { border-bottom: 0; }
.tiles li::before { content: counter(tile, decimal-leading-zero); color: var(--muted); font-size: .8125rem; font-weight: 500; margin-bottom: 1.75rem; }
.tiles h3 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.tiles p { margin: 0; color: var(--muted); font-size: .9688rem; line-height: 1.55; text-wrap: pretty; }

/* Rows: a short statement list with hairlines */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 1fr; gap: .3rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; letter-spacing: -.01em; }
.rows dd { margin: 0; color: var(--muted); max-width: var(--measure); }

/* Contact: the one black panel */
.panel {
  position: relative; overflow: hidden;
  margin: 3.5rem 0 0; padding: 2.25rem 1.5rem;
  background: var(--inverse); color: #fff; border-radius: var(--radius);
}
.panel h2 { color: #fff; font-size: clamp(1.75rem, 1.4vw + 1.3rem, 2.5rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; max-width: 18ch; }
.panel p { color: var(--inverse-muted); margin: .85rem 0 0; max-width: 46ch; }
.panel .actions { margin-top: 1.75rem; }
.panel :focus-visible { outline-color: #fff; }
.panel > *:not(.panel-drawing) { position: relative; z-index: 1; }
.panel-drawing { display: none; }
.panel-mail { color: #fff; font-size: .9375rem; font-weight: 500; text-underline-offset: 4px; }
.panel-mail:hover { color: var(--inverse-muted); }

/* Footer */
.site-footer { margin-top: 4rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.6; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; max-width: var(--measure); }
.site-footer .brand { font-size: 1rem; min-height: 0; margin-bottom: .5rem; }

/* Larger screens */
@media (min-width: 640px) {
  .site-nav ul { display: flex; }
}
@media (min-width: 760px) {
  .wrap { padding: 0 2rem; }
  .hero { padding: 6rem 0 5rem; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles li { border-bottom: 0; border-right: 1px solid var(--line); }
  .tiles li:last-child { border-right: 0; }
  .rows > div { grid-template-columns: 14rem minmax(0, 1fr); align-items: baseline; }
  .panel { padding: 3.25rem 3rem; }
}
@media (min-width: 900px) {
  .hero { min-height: 34rem; display: flex; align-items: center; }
  .hero-copy { max-width: min(38rem, calc(100% - 26rem)); }
  .hero-visual { position: absolute; top: 50%; right: -1rem; margin: -12rem 0 0; width: 24rem; z-index: 0; }
  .panel-drawing {
    display: block; position: absolute; right: -4rem; top: 50%; transform: translateY(-50%);
    width: 22rem; height: 22rem; opacity: .9; pointer-events: none;
  }
}
@media (min-width: 1100px) {
  .hero-copy { max-width: min(38rem, calc(100% - 30rem)); }
  .hero-visual { width: 28rem; margin-top: -14rem; right: 0; }
}

/* The drawings are assets/drawing.svg and drawing-dark.svg, each carrying its own strokes and
   slow motion (and stopping it under reduced motion). Braindance: a disc of waves, each line
   drifting at its own pace. Stockhold: nested squares, the stack turning, one square breathing. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
