:root {
  color-scheme: light;
  --paper: #f8f8f5;
  --ink: #171a18;
  --muted: #565f59;
  --rule: #dce1da;
  --mint: #b9ffda;
  --green: #176246;
  --night: #141c18;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #368f6c; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.section-pad { padding-block: clamp(4rem, 8vw, 7.5rem); }
.skip { position: fixed; top: .75rem; left: .75rem; padding: .8rem 1rem; z-index: 5; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); }
.wordmark, nav a { text-decoration: none; }
.wordmark { font-size: 1rem; font-weight: 750; letter-spacing: -.035em; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.75rem, 3vw, 2rem); font-weight: 600; font-size: .875rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { padding: .55rem .9rem; border: 1px solid var(--rule); border-radius: 99px; }
.language-switch { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding-inline: .65rem; border: 1px solid var(--rule); border-radius: .55rem; color: var(--green); }
.language-switch:hover { background: var(--mint); }
.header-actions { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.header-actions .language-switch { font-size: .875rem; font-weight: 600; text-decoration: none; }
.menu-toggle { display: none; }
.menu-icon { width: 1.15rem; height: 2px; background: currentColor; box-shadow: 0 -.36rem currentColor, 0 .36rem currentColor; }
.back-to-top {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 4;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 18px #12241b26;
  color: var(--green);
  text-decoration: none;
  font-size: 1.45rem;
}
.back-to-top:not([hidden]) { display: grid; place-items: center; }
.back-to-top:hover { background: var(--mint); }

.hero { text-align: center; padding-block: clamp(3.8rem, 7.8vw, 7.5rem) clamp(4.5rem, 8vw, 7rem); }
h1 { font-size: clamp(3rem, 7.6vw, 7.1rem); line-height: .97; font-weight: 760; letter-spacing: -.082em; text-wrap: balance; }
h1 em { color: var(--green); font-style: normal; }
.hero > p { max-width: 34rem; margin: 1.4rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.55; }
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; max-width: 990px; margin: clamp(2.6rem, 5.8vw, 5rem) auto 2.6rem; gap: .72rem; }
.project { min-width: 0; position: relative; transition: transform .24s ease; }
.project:first-child { transform: translate(4%, .7rem) rotate(-7deg); }
.project:nth-child(2) { z-index: 2; transform: translateY(-.65rem) scale(1.075); }
.project:last-child { transform: translate(-4%, .7rem) rotate(7deg); }
.project:hover, .project:focus-within { z-index: 3; transform: translateY(-.9rem) scale(1.075); }
.project h2 { margin-top: .75rem; font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
.poster { width: 100%; display: grid; place-items: center; position: relative; border: 3px solid #fff; padding: 0; overflow: hidden; aspect-ratio: 16/10; border-radius: 1.1rem; isolation: isolate; box-shadow: 0 14px 30px #12241b26; color: white; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.poster-art { position: absolute; inset: 0; overflow: hidden; }
.poster-art::before, .poster-art::after, .poster-art span { content: ''; position: absolute; }
.project--amber .poster, .project--amber .poster-art { background: linear-gradient(135deg, #331e18 8%, #b56838 75%, #fbb777); }
.project--amber .poster-art::before { inset: -58% -12%; background: repeating-radial-gradient(ellipse at 78% 36%, transparent 0 15px, #f9c99a6b 16px 17px, transparent 18px 27px); transform: rotate(-19deg); }
.project--amber .poster-art::after { inset: 19% 14%; border: 1px solid #fff6; }
.project--violet .poster, .project--violet .poster-art { background: radial-gradient(ellipse at 55% 42%, #bb90e0, #624885 48%, #242036 100%); }
.project--violet .poster-art::before { inset: 14% 8%; background: repeating-linear-gradient(90deg, #f5d6ffb3 0 3px, transparent 3px 10px); clip-path: polygon(0 50%, 7% 37%, 14% 54%, 20% 32%, 30% 42%, 41% 7%, 47% 43%, 55% 13%, 63% 53%, 70% 22%, 78% 49%, 87% 38%, 94% 48%, 100% 50%, 94% 55%, 87% 68%, 78% 51%, 70% 82%, 63% 55%, 55% 90%, 47% 61%, 41% 95%, 30% 68%, 20% 77%, 14% 55%, 7% 68%); }
.project--violet .poster-art::after { inset: 0; background: repeating-linear-gradient(0deg, transparent 0 18px, #fff2 19px 20px); }
.project--green .poster, .project--green .poster-art { background: radial-gradient(ellipse at 18% 0%, #92d4a3, #306e57 50%, #112d25 100%); }
.project--green .poster-art::before { inset: -60% -5%; background: repeating-linear-gradient(90deg, #c9ffdd69 0 1px, transparent 2px 14px); transform: rotate(43deg); }
.project--green .poster-art::after { width: 58%; aspect-ratio: 1; left: 21%; top: 5%; border: 1px solid #d6ffdbb3; border-radius: 50%; box-shadow: 0 0 0 18px #d6ffdb28, 0 0 0 38px #d6ffdb18; }
.play { display: grid; place-items: center; width: 3.5rem; aspect-ratio: 1; border: 1px solid #ffffff83; border-radius: 50%; background: #111c17b9; backdrop-filter: blur(5px); z-index: 2; }
.play::before { content: ''; border: .51rem solid transparent; border-left: .83rem solid white; transform: translateX(.29rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.35rem; border: 1px solid transparent; border-radius: 99px; text-decoration: none; font-size: .925rem; font-weight: 700; }
.button--dark { color: white; background: var(--night); }
.button--dark:hover { background: var(--green); }
.button--outline { border-color: var(--rule); }
.button--outline:hover { background: #eaf0ea; }
.button--mint { color: var(--night); background: var(--mint); }
.button--mint:hover { background: #ddffec; }

section:not(.hero) h2 { font-size: clamp(2.55rem, 5.5vw, 5rem); font-weight: 740; letter-spacing: -.075em; line-height: 1.03; text-wrap: balance; }
.workflow { background: #ecf1ec; border-block: 1px solid var(--rule); }
.workflow-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.tool { border: 1px solid #d9e0d9; background: var(--paper); padding: clamp(1rem, 2.6vw, 1.8rem); border-radius: 1.15rem; }
.tool-icon { display: grid; place-items: center; width: 2.75rem; aspect-ratio: 1; border-radius: .75rem; font-weight: 750; }
.tool-icon--pr { color: #e2c9ff; background: #2e2159; }
.tool-icon--ae { color: #e7dcff; background: #433371; }
.tool-icon--ai { background: var(--mint); color: var(--green); }
.workflow h3 { margin-top: .9rem; font-size: 1.05rem; }
.workflow p, .about-copy p, .contact p { margin-top: .45rem; line-height: 1.6; color: var(--muted); }
.people-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.6rem; border-top: 1px solid #d2dcd3; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.about-copy p { margin-top: 1rem; font-size: 1.08rem; max-width: 35rem; }
.portrait { display: grid; place-items: center; background: #e8efe8; border: 1px dashed #a8b8ad; color: #4c6254; font-size: .925rem; font-weight: 650; overflow: hidden; border-radius: 1.2rem; }
.portrait:has(img) { border: 0; }
.portrait img { width: 100%; height: auto; }

.contact { background: var(--night); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 8vw, 6rem); align-items: start; }
.contact p { margin-top: 1rem; color: #cedad2; }
#contact-form { display: grid; gap: .55rem; }
#contact-form label { font-size: .925rem; font-weight: 650; }
#contact-form input:not([type="checkbox"]), #contact-form textarea { width: 100%; border: 1px solid #5e7066; background: #222e27; color: white; padding: .75rem .9rem; border-radius: .6rem; margin-bottom: .55rem; }
#contact-form textarea { resize: vertical; }
#contact-form .privacy-acceptance { display: flex; align-items: baseline; gap: .6rem; margin-block: .2rem .55rem; }
.privacy-acceptance input { margin: 0; accent-color: var(--mint); }
.privacy-acceptance a { color: var(--mint); text-underline-offset: .18em; }
#contact-form button { justify-self: start; }
#contact-form button:disabled { opacity: .7; }
#contact-form .form-status { margin: .25rem 0 0; }
.form-status:empty { display: none; }
.site-footer { border-top: 1px solid #37463d; background: var(--night); color: #cedad2; font-size: .9rem; }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; padding-block: 1.4rem; }
.footer-links { display: flex; gap: .65rem 1.25rem; flex-wrap: wrap; margin-inline-start: auto; }
.footer-links a { color: inherit; }
.footer-links [aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }

.policy-page { min-height: 100vh; display: flex; flex-direction: column; }
.policy-page main { flex: 1; }
.policy-content { max-width: 74ch; padding-block: clamp(3rem, 8vw, 6rem); line-height: 1.65; overflow-wrap: anywhere; }
.policy-content h1 { margin: 0 0 .6rem; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.05; }
.policy-content h2 { margin: 2.1rem 0 .5rem; font-size: 1.42rem; line-height: 1.25; }
.policy-content p + p { margin-top: .8rem; }
.policy-content ul { padding-inline-start: 1.35em; }
.policy-content li + li { margin-top: .35rem; }
.policy-content a { color: var(--green); text-underline-offset: .2em; }
.policy-content .template-note { margin-block: 1.1rem 1.8rem; padding: .85rem 1rem; border-inline-start: .2rem solid var(--green); background: #ecf1ec; }

dialog { width: min(820px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--rule); border-radius: 1rem; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #0c1410c7; }
.player-header { padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.player-header h2 { font-size: 1.15rem; }
.player-header button { font-size: 1.5rem; line-height: 1; width: 2.4rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--rule); background: white; }
#player-body p { padding: 1rem; color: var(--muted); }
#player-body video, #player-body iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #111; }

@media (max-width: 700px) {
  .shell { width: calc(100% - 2rem); }
  .site-header { padding-block: 1rem; flex-wrap: wrap; min-height: 0; }
  .site-header:has(.menu-toggle:not([hidden])) { position: relative; }
  .header-actions { gap: .5rem; }
  .menu-toggle:not([hidden]) { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--rule); border-radius: .55rem; color: var(--green); background: transparent; }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--mint); }
  .menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); box-shadow: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { content: ""; display: block; height: 2px; background: currentColor; transform: rotate(90deg); }
  .menu-toggle:not([hidden]) + .main-nav { position: absolute; z-index: 10; inset-block-start: calc(100% + .4rem); inset-inline-end: 0; width: min(15rem, 100%); display: none; padding: .4rem; border: 1px solid var(--rule); border-radius: .75rem; background: var(--paper); }
  .menu-toggle:not([hidden]) + .main-nav[data-open] { display: grid; gap: 0; }
  .main-nav[data-open] a { display: block; padding: .75rem .8rem; border: 0; border-radius: .45rem; }
  .main-nav[data-open] a:hover { background: var(--mint); }
  .desktop-break { display: none; }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; gap: .9rem; }
  .reel .project { transform: none; }
  .project:nth-child(2) { grid-column: 1 / -1; grid-row: 1; width: 77%; justify-self: center; }
  .play { width: 2.65rem; }
  .workflow-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 480px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project { transition: none; }
}
