@font-face {
  font-family: "Source Sans 3";
  src: url("source-sans.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f3eddc;
  --muted: #b6c6c1;
  --cream: #f7f1db;
  --sage: #061f22;
  --olive: #061f22;
  --line: #3e7471;
  font-family: "Source Sans 3", "Aptos", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--sage); color: var(--ink); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 20; padding: .5rem; color: var(--ink); background: var(--cream); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 3; color: var(--cream); background: linear-gradient(180deg, #061f22e6, #061f2277 70%, #061f2200); }
.header-inner { display: flex; align-items: center; min-height: 105px; gap: 34px; }
.wordmark { display: grid; justify-items: center; gap: 8px; width: 220px; margin-right: auto; }
.wordmark img { height: auto; }
.wordmark-main { width: 100%; }
.wordmark-caption { width: 155px; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
nav a, .lang, footer a { text-decoration: none; font-size: 1rem; }
nav a:hover, .lang:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.lang { border-left: 1px solid #f7f1db55; padding-left: 25px; }
main { background: linear-gradient(180deg, #061f22 0%, #061f22 54%, #08282a 78%, #0b3030 100%); }
.hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background-color: var(--olive);
  background-image: linear-gradient(90deg, #061f2299 0%, #061f2233 40%, #061f2200 70%), url("petrol-world.jpg");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 230px;
  background: linear-gradient(180deg, #061f2200, #061f22);
  pointer-events: none;
}
.hero-inner { padding-block: clamp(170px, 15vw, 218px) clamp(150px, 14vw, 195px); }
.hero-copy { max-width: 720px; }
.hero h1 { font-size: clamp(4rem, 7.8vw, 6.7rem); font-weight: 350; line-height: 1.02; letter-spacing: -.035em; }
.hero p { max-width: 610px; margin-top: 27px; font-size: clamp(1.15rem, 2.3vw, 1.55rem); line-height: 1.4; }
.hero .hero-credit { position: absolute; bottom: 25px; right: max(4%, calc((100vw - 1320px) / 2)); max-width: calc(100% - 32px); margin: 0; font-size: .7rem; color: #9daaa5; text-align: right; }
.hero-links { margin-top: 33px; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 10px 24px; border: 1px solid var(--cream); border-radius: 2px; color: var(--cream); background: #061f2240; font-size: 1.1rem; text-decoration: none; }
.button:hover { background: var(--cream); color: var(--olive); }
.text-link { display: inline-block; width: fit-content; font-weight: 600; text-decoration: underline; text-decoration-color: #6bafaa; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }
.section { padding-block: clamp(48px, 5vw, 76px); scroll-margin-top: 30px; }
.section h2 { font-weight: 450; font-size: clamp(2.25rem, 4.3vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; }
.portfolio { padding-top: 0; position: relative; }
.projects, .roles, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: 30px; align-items: start; }
.project { min-width: 0; }
.project summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; border-bottom: 1px solid #498b86; padding-bottom: 11px; }
.project summary::-webkit-details-marker { display: none; }
.project h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.project sup { font-size: .48em; vertical-align: super; margin-left: .14em; }
.project-arrow { font-size: 1.8rem; font-weight: 300; color: #91c7be; }
.project[open] .project-arrow { transform: rotate(90deg); }
.project-detail { padding-top: 22px; }
.project img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.project-copy { padding-top: 14px; }
.project-copy .text-link { margin-top: 10px; }
.credit { font-size: .76rem; color: #9daaa5; margin-top: 10px; }
#company { padding-top: clamp(55px, 7vw, 104px); }
.role { border-top: 1px solid #376663; padding-top: 18px; }
.label { color: #9bc4b9; font-size: .76rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.role h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 550; line-height: 1.15; margin-top: 10px; }
.role h3 + p { color: var(--muted); margin-top: 13px; max-width: 48ch; }
.role .text-link { margin-top: 14px; }
.contact-grid .label { margin-bottom: 10px; }
.company-place { color: var(--muted); }
footer { background: #0b3030; color: var(--ink); }
.footer-inner { border-top: 1px solid #376663; padding-block: 25px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.stories-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 7vw, 100px); padding-block: clamp(30px, 4vw, 55px); border-block: 1px solid #376663; }
.stories h2 { max-width: 12ch; }
.stories-copy { max-width: 56ch; }
.stories-copy p + p { margin-top: 20px; color: var(--muted); }
.stories-intro { font-size: 1.25rem; line-height: 1.45; }
.stories-copy .button { margin-top: 28px; }

@media (max-width: 750px) {
  .wrap { width: calc(100% - 44px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; row-gap: 0; padding-top: 21px; min-height: auto; }
  .wordmark { width: 185px; margin-bottom: 20px; }
  .wordmark-caption { width: 144px; }
  .lang { grid-row: 1; grid-column: 2; padding-left: 14px; margin-bottom: 20px; }
  nav { grid-column: 1 / -1; border-top: 1px solid #f7f1db33; padding-block: 10px; gap: clamp(14px, 4vw, 32px); flex-wrap: wrap; }
  nav a, .lang { font-size: .9rem; }
  .hero { background-image: linear-gradient(90deg, #061f22dd 0%, #061f22a6 54%, #061f2255 100%), url("petrol-world.jpg"); background-position: center, 59% center; }
  .hero-inner { padding-block: 195px 175px; }
  .hero::after { height: 140px; }
  .hero h1 { font-size: clamp(3.5rem, 12.5vw, 5rem); }
  .hero p { max-width: 31ch; font-size: 1.2rem; }
  .projects, .roles, .contact-grid, .stories-layout { grid-template-columns: 1fr; }
  .stories h2 { max-width: 16ch; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .company-place { display: block; }
}

#story-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(26px, 5vw, 44px); border: 1px solid #498b86; border-radius: 4px; color: var(--ink); background: #0b292c; box-shadow: 0 24px 90px #0008; }
#story-dialog::backdrop { background: #001416b8; backdrop-filter: blur(5px); }
#story-dialog h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; font-weight: 450; padding-right: 20px; }
#story-dialog p { color: var(--muted); margin-top: 22px; }
.dialog-close { position: absolute; top: 8px; right: 12px; }
.dialog-close button { width: 44px; height: 44px; border: 0; color: var(--cream); background: transparent; font: inherit; font-size: 1.9rem; cursor: pointer; }
.story-address { display: inline-block; margin-top: 24px; color: var(--cream); overflow-wrap: anywhere; font-weight: 600; }
.story-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.story-actions button { font: inherit; font-size: 1.1rem; cursor: pointer; }
#story-dialog .story-status { min-height: 1.6em; font-size: .85rem; margin-top: 16px; }

.credit a, .hero-credit a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.credit a:hover, .hero-credit a:hover { color: var(--cream); }
