* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  line-height: 1.5;
}

body.has-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-paper) 94%, var(--color-teal));
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(148px, 15vw, 184px);
  height: auto;
}

.header-actions {
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.flag-option {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  padding: 0;
  border-radius: 2px;
  filter: saturate(0.55);
  opacity: 0.5;
  overflow: hidden;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.flag-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.flag-option.is-active {
  filter: saturate(1.15);
  opacity: 1;
}

.hero {
  display: grid;
  gap: 0;
  padding-top: var(--header-height);
}

.hero-image {
  position: relative;
  min-height: min(70svh, 720px);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: start;
  width: 100%;
  max-width: none;
}

.hero-copy h1 {
  color: var(--color-white);
  font-weight: 700;
}

.prepress-word {
  display: inline;
  font-style: normal;
  font-weight: 300;
  color: var(--color-white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--font-display);
  max-width: 100%;
  font-size: clamp(46px, 7.4vw, 108px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.hero-summary {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(42px, 7vw, 96px) var(--page-gutter);
  background: linear-gradient(
    to bottom,
    var(--color-section) 0%,
    var(--color-section) 50%,
    color-mix(in srgb, var(--color-section) 80%, #000) 100%
  );
  border-bottom: 1px solid var(--color-line);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-round);
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-paper);
  background: var(--color-deep);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--color-soft-black);
  background: var(--color-olive);
  border-color: var(--color-olive);
}

.hero-cta {
  width: min(100%, 340px);
  justify-self: start;
  color: var(--color-white);
  background: var(--color-plum);
  border-color: var(--color-plum);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: var(--color-soft-black);
  background: var(--color-white);
  border-color: var(--color-white);
}

.hero-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 48px);
}

.hero-actions .hero-cta {
  flex: 0 1 340px;
}

.hero-actions .no-ai {
  flex: 0 0 auto;
}

.showcase-section {
  background: var(--color-paper);
}

.showcase-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 18px var(--page-gutter);
  background: var(--color-plum);
}

.showcase-group-title {
  width: 100%;
  min-width: 0;
  max-width: 520px;
  justify-self: center;
  margin: 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.showcase-nav {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms ease;
}

.showcase-nav:first-child {
  justify-self: start;
}

.showcase-nav:last-child {
  justify-self: end;
}

.showcase-nav span {
  display: block;
  line-height: 1;
  transform: translateY(-2px);
}

.showcase-nav:hover,
.showcase-nav:focus-visible {
  color: var(--color-white);
  transform: scale(1.08);
}

.showcase-nav:focus-visible {
  outline: 3px solid var(--color-olive);
  outline-offset: 2px;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.showcase-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-panel);
}

.tile-image {
  position: absolute;
  inset: 0;
  background: var(--tile-image);
  background-position: center;
  background-size: 115%;
  background-repeat: no-repeat;
  transition: transform 520ms ease;
}

.tile-one {
  --tile-image: var(--tile-1-image);
}

.tile-two {
  --tile-image: var(--tile-2-image);
}

.tile-three {
  --tile-image: var(--tile-3-image);
}

.tile-four {
  --tile-image: var(--tile-4-image);
}

.tile-five {
  --tile-image: var(--tile-5-image);
}

.tile-six {
  --tile-image: var(--tile-6-image);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 42px);
  color: var(--color-paper);
  background: color-mix(in srgb, var(--color-overlay) 50%, transparent);
  opacity: 0.5;
  transform: translateY(100%);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 520ms ease, background-color 520ms ease;
}

.showcase-tile:hover .tile-overlay {
  opacity: 1;
  transform: translateY(0);
  background: var(--color-overlay);
}

.showcase-tile:hover .tile-image {
  transform: scale(1.035);
}

.tile-overlay h2 {
  max-width: 420px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 400;
  line-height: 0.96;
}

.tile-overlay p {
  max-width: 360px;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.25;
}

.portfolio-download {
  display: grid;
  place-items: center;
  padding: clamp(52px, 8vw, 96px) var(--page-gutter);
  background: var(--color-plum);
}

.portfolio-actions {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-download-button {
  width: 100%;
  min-height: 58px;
  color: var(--color-white);
  background: var(--color-soft-black);
  border-color: var(--color-soft-black);
  white-space: nowrap;
}

.portfolio-download-button:hover,
.portfolio-download-button:focus-visible {
  color: var(--color-soft-black);
  background: var(--color-white);
  border-color: var(--color-white);
}

.section,
.contact {
  padding: clamp(70px, 11vw, 150px) var(--page-gutter);
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto clamp(34px, 6vw, 72px);
}

.service-tabs,
.service-panels {
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-panels {
  --service-cell-height: clamp(84px, 8vw, 96px);
  --service-panel-gap: clamp(10px, 1.25vw, 16px);
  position: relative;
  overflow: hidden;
  min-height: calc((var(--service-cell-height) * 3) + (var(--service-panel-gap) * 2));
}

.service-panel {
  width: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.service-panel.is-entering {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateX(-28px);
}

.service-panel.is-entering.is-active {
  opacity: 1;
  transform: translateX(0);
}

.service-panel.is-exiting {
  opacity: 0;
  pointer-events: none;
  transform: translateX(56px);
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 16px);
  margin-bottom: clamp(24px, 4vw, 48px);
}

.service-tab {
  height: clamp(86px, 7vw, 96px);
  padding: 0 clamp(16px, 3vw, 32px);
  color: var(--color-ink);
  background: var(--color-card);
  border: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-soft-black) 5%, transparent);
  cursor: pointer;
  font-size: clamp(22px, 2.25vw, 32px);
  font-weight: 800;
  line-height: 1.08;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.service-tab:hover,
.service-tab:focus-visible {
  background: color-mix(in srgb, var(--color-olive) 22%, var(--color-white));
  transform: translateY(-2px);
}

.service-tab.is-active {
  color: var(--color-white);
  background: var(--color-teal);
}

.service-tab.is-active:hover,
.service-tab.is-active:focus-visible {
  color: var(--color-soft-black);
  background: var(--color-olive);
}

.service-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: var(--service-cell-height);
  gap: var(--service-panel-gap);
}

.service-cell {
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 16px clamp(16px, 2.4vw, 28px);
  color: var(--color-muted);
  background: var(--color-card);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.22;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-soft-black) 5%, transparent);
}

.history-copy p,
.contact p {
  color: var(--color-muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.work {
  background: var(--color-deep);
  color: var(--color-paper);
}

#work-title {
  color: var(--color-olive);
}

.work-title-years {
  color: var(--color-white);
}

.work .eyebrow {
  color: var(--color-olive);
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.history-copy {
  display: grid;
  gap: 32px;
}

.history-copy p {
  margin: 0;
  color: color-mix(in srgb, var(--color-white) 58%, var(--color-teal));
}

.history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(192px, 18vw, 220px);
  gap: clamp(10px, 1.25vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: clamp(20px, 2.2vw, 26px);
  padding: clamp(18px, 2.2vw, 26px);
  background: color-mix(in srgb, var(--color-teal) 14%, transparent);
}

.history-list strong {
  color: var(--color-paper);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 0.95;
}

.history-list span {
  color: color-mix(in srgb, var(--color-white) 72%, var(--color-teal));
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  line-height: 1.22;
}

.history-list em {
  font-style: italic;
}

.no-ai {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.no-ai span {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  justify-self: center;
  place-items: center;
  color: var(--color-ink);
  background: var(--color-white);
  border: 12px solid var(--color-accent-dark);
  border-radius: 50%;
  font-size: 41px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.no-ai span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 6px;
  content: "";
  background: var(--color-accent-dark);
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-38deg);
  transform-origin: center;
}

.no-ai small {
  color: var(--color-ink);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 0.65fr);
  gap: clamp(34px, 7vw, 96px);
  max-width: calc(var(--max-width) + var(--page-gutter) * 2);
  margin: 0 auto;
}

.contact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.contact-links {
  display: flex;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 52px);
}

.contact-link {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--color-white);
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.discord-link {
  background: var(--color-discord);
}

.discord-link svg {
  display: block;
  width: 36px;
  height: auto;
  fill: currentColor;
}

.email-link {
  background: var(--color-email);
}

.email-link svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.discord-link:hover {
  background: var(--color-discord-hover);
}

.email-link:hover {
  background: var(--color-email-hover);
}

.contact-link:hover {
  transform: translateY(-2px);
}

.contact-link:focus-visible {
  outline: 3px solid var(--color-olive);
  outline-offset: 4px;
}

.contact h2 + p {
  margin-top: clamp(14px, 2.2vw, 26px);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-label {
  display: inline-flex;
  width: max-content;
  align-items: flex-start;
  gap: 2px;
}

.required-marker {
  color: var(--color-plum);
  font-size: 0.78em;
  line-height: 1;
  transform: translateY(-0.12em);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--color-ink);
  font-weight: 400;
  background: var(--color-field);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button-primary {
  color: var(--color-white);
  background: var(--color-discord);
  border-color: var(--color-discord);
}

.contact-form .button-primary:hover,
.contact-form .button-primary:focus-visible {
  color: var(--color-white);
  background: var(--color-discord-hover);
  border-color: var(--color-discord-hover);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 30px var(--page-gutter);
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.footer-legal-trigger {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 0.18em;
}

.footer-legal-trigger {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer-legal-trigger:hover,
.footer-legal-trigger:focus-visible {
  color: var(--color-ink);
  text-decoration: underline;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-soft-black) 58%, transparent);
}

.legal-panel {
  position: relative;
  width: min(100%, 860px);
  max-height: min(86svh, 860px);
  overflow: auto;
  padding: clamp(28px, 4vw, 48px);
  color: var(--color-ink);
  background: var(--color-field);
  border: 1px solid color-mix(in srgb, var(--color-soft-black) 12%, transparent);
  border-radius: var(--radius-small);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--color-soft-black) 28%, transparent);
}

.legal-panel:focus {
  outline: none;
}

.legal-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  width: 40px;
  height: 40px;
  margin: -10px -10px 14px 18px;
  place-items: center;
  color: var(--color-paper);
  background: var(--color-deep);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.legal-close:hover,
.legal-close:focus-visible {
  background: var(--color-accent-dark);
}

.legal-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.legal-head h2 {
  max-width: 640px;
}

.legal-head p {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
}

.legal-list {
  display: grid;
  gap: 1px;
  margin: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}

.legal-list dt {
  color: var(--color-muted);
  font-weight: 800;
}

.legal-list dd {
  margin: 0;
  font-weight: 500;
}

.legal-list a {
  color: var(--color-accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-summary,
  .service-panel article,
  .showcase-tile,
  .history-grid,
  .contact {
    animation: rise-in 700ms ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel {
    transition: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .header-actions a {
    display: none;
  }

  .hero,
  .history-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    display: grid;
  }

  .service-cells {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 560px) {
  .brand-logo {
    width: 140px;
  }

  .language-toggle {
    min-height: 34px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .hero-image {
    min-height: 58svh;
  }

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

  .hero-cta {
    width: 100%;
  }

  .portfolio-actions {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
  }

  .service-cells {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .legal-panel {
    max-height: 88svh;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
