:root {
  --ink: #111318;
  --muted: #59606b;
  --line: #d9dee4;
  --paper: #ffffff;
  --wash: #f3f6f7;
  --teal: #006d77;
  --red: #a83b35;
  --gold: #b9832f;
  --serif: Baskerville, "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(0, 109, 119, 0.35);
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 19, 24, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #2d333b;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.35rem;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.82);
}

.language-toggle button {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.language-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 690px;
  display: grid;
  align-items: end;
  position: relative;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(10, 12, 16, 0.02) 0%, rgba(10, 12, 16, 0.08) 42%, rgba(10, 12, 16, 0.7) 78%, rgba(10, 12, 16, 0.98) 100%),
    url("img/tiptoe_home_banner_2025-1536x864.png");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 360px 0 34px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 0.72fr);
  grid-template-areas:
    "eyebrow body"
    "title body"
    "actions body";
  align-items: end;
  gap: 8px 36px;
  padding: 26px 0 10px;
}

.hero-copy .eyebrow {
  grid-area: eyebrow;
}

.hero-copy h1 {
  grid-area: title;
}

.hero-copy > p:not(.eyebrow) {
  grid-area: body;
  align-self: center;
}

.hero-copy .actions {
  grid-area: actions;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.98;
  font-weight: 500;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(17, 19, 24, 0.16);
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.button.light {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--wash);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 32px;
}

.section-head h2,
.page-hero h1,
.article h1 {
  margin: 0;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1.12;
  font-weight: 600;
}

.section-head p,
.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  transition: filter 220ms ease, transform 220ms ease;
}

.feature:hover > img {
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-3px);
}

.feature h2,
.profile h2,
.article h1,
.article h2,
.panel h3,
.project-card h3 {
  font-family: var(--serif);
  font-weight: 600;
}

.feature h2,
.profile h2 {
  margin: 0 0 14px;
  font-size: 2.2rem;
  line-height: 1.14;
}

.stack {
  display: grid;
  gap: 64px;
}

.feature-berlin-footnote {
  grid-template-columns: 1.05fr 0.95fr;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-media {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 109, 119, 0.12), rgba(184, 131, 47, 0.13)),
    #101318;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-media img {
  width: min(62%, 240px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

.feature-trailer {
  position: relative;
  width: 100%;
  min-height: auto;
  aspect-ratio: 16 / 10;
  background: #101318;
}

.feature-trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.feature-berlin-footnote:hover .feature-media {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(17, 19, 24, 0.18);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.panel:hover {
  border-color: rgba(0, 109, 119, 0.34);
  box-shadow: 0 18px 38px rgba(17, 19, 24, 0.1);
  transform: translateY(-3px);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.service-list strong {
  color: var(--ink);
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--paper);
  color: #28303a;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.filter:hover {
  border-color: rgba(0, 109, 119, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 19, 24, 0.08);
}

.filter.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card img {
  width: 132px;
  height: 188px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--wash);
  transition: filter 220ms ease, transform 220ms ease;
}

.project-card:hover {
  border-color: rgba(168, 59, 53, 0.24);
  background: #fffdfa;
  box-shadow: 0 18px 38px rgba(17, 19, 24, 0.12);
  transform: translateY(-3px);
}

.project-card:hover img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.018);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.meta {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tagline {
  color: var(--red);
  font-weight: 700;
}

.profile {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.profile img {
  width: 310px;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border-radius: 8px;
}

.article {
  max-width: 860px;
}

.article h1 {
  font-size: 2.6rem;
  line-height: 1.08;
}

.article h2 {
  margin-top: 36px;
}

.article p,
.article li {
  color: #303742;
}

.article ul {
  padding-left: 1.2rem;
}

.page-hero {
  padding: 78px 0 46px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.contact-band {
  background: var(--ink);
  color: #fff;
}

.contact-band a {
  color: #fff;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 86px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }

  .nav-links.open {
    display: flex;
  }

  .language-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 260px 0 30px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "body"
      "actions";
    gap: 10px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .section-head,
  .feature,
  .feature-berlin-footnote,
  .grid.two,
  .grid.three,
  .profile {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature-media {
    min-height: 240px;
  }

  .feature-trailer {
    min-height: auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile img {
    width: min(100%, 360px);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 610px;
    background-position: 55% center;
  }

  .hero-inner {
    padding-top: 300px;
  }

  .hero h1,
  .page-hero h1,
  .article h1 {
    font-size: 2.15rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .feature h2,
  .profile h2,
  .section-head h2 {
    font-size: 1.75rem;
  }

  .project-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .project-card img {
    width: 92px;
    height: 132px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
