/* ==========================================================================
   Telmo Ponte – static HTML/CSS/JS version of telmoponte.com
   ========================================================================== */

/* Fonts (self-hosted Open Sans variable, weights 300–800)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/opensans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/opensans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/opensans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --accent: #e39263;
  --accent-light: #f0a678;
  --link: #00806a;
  --bar: 69px;            /* width of the fixed left bar */
  --panel: 250px;         /* width of the sliding menu   */
}

/* Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  left: 0;
  margin: 0;
  overflow-x: hidden;
  background-color: #f5f5f5;
  color: #45587b;
  /* line-height is in em on purpose: the computed px value is inherited,
     which is what keeps the big "SACO" words tightly stacked. */
  font: 400 1.1em/1.65em "Open Sans", Arial, sans-serif;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: left .2s ease-in-out;
}
body.menu-open { left: calc(var(--bar) + var(--panel)); }

h1, h2, h3 { color: #404040; font-weight: 700; margin: 0 0 .5em; overflow-wrap: normal; }
h1 { font-size: 2.8em; line-height: 1.2em; letter-spacing: -.03em; }
h2 { font-size: 2.2em; line-height: 1.3em; letter-spacing: -.02em; }
h3 { font-size: 1.8em; line-height: 1.4em; letter-spacing: .015em; }

p { margin: 0 0 1.3em; padding: 0; }
ul { margin: 0 0 1.4em 1.6em; padding: 0; }
li { margin: 0 0 1em; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; text-underline-offset: 20%; transition: color .3s ease-in-out; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 90px;
  z-index: 10000;
  padding: .5em 1em;
  background: #fff;
  color: #2b2b2b;
}
.skip-link:focus { top: 10px; }

.center { text-align: center; }

/* Left bar + sliding menu
   -------------------------------------------------------------------------- */
#headerwrap {
  position: fixed;
  top: 0;
  left: calc(var(--bar) - 318px);
  z-index: 9999;
  width: 318px;
  height: 100%;
  background-color: #fff;
  color: #2e2e2e;
  font-size: .95em;
  font-weight: 600;
}

.menu-toggle {
  position: fixed;
  top: 30px;
  left: 12px;
  z-index: 3;
  display: block;
  width: 46px;
  height: 46px;
  padding: 14px 10px;
  border: 0;
  border-radius: 100%;
  background: none;
  color: #2b2b2b;
  cursor: pointer;
}
.menu-toggle:hover { background: rgba(200, 200, 200, .25); color: var(--accent); }

.menu-toggle-inner {
  position: relative;
  display: block;
  width: 26px;
  height: 18px;
  margin: auto;
  border-bottom: 2px solid;
  transition: border .5s, transform .5s;
}
.menu-toggle-inner::before,
.menu-toggle-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  border-top: 2px solid;
  transition: transform .7s ease;
}
.menu-toggle-inner::after { top: 50%; }

.menu-open .menu-toggle { padding: 10px; }
.menu-open .menu-toggle-inner { width: 26px; height: 26px; border: 0; overflow: hidden; }
.menu-open .menu-toggle-inner:hover { transform: rotateZ(90deg); }
.menu-open .menu-toggle-inner::before,
.menu-open .menu-toggle-inner::after { top: 50%; transform: rotateZ(-45deg); }
.menu-open .menu-toggle-inner::after { transform: rotateZ(45deg); }

/* Vertical "TELMO PONTE  Designer Gráfico" */
.brand {
  position: fixed;
  bottom: -45px;
  left: 0;
  height: var(--bar);
  line-height: var(--bar);
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: 0 0;
}
.brand-name {
  display: inline-block;
  margin: 0 .3em 0 0;
  font-size: 1.33em;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2em;
  vertical-align: middle;
  text-transform: uppercase;
}
.brand-name a { color: inherit; }
.brand-tagline {
  display: inline-block;
  font-size: .9em;
  line-height: 110%;
  opacity: .7;
}

/* Language and theme buttons */
.bar-tools {
  position: fixed;
  top: 84px;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: var(--bar);
}
.bar-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background: none;
  color: #2b2b2b;
  cursor: pointer;
  font: 700 13px/1 "Open Sans", Arial, sans-serif;
  letter-spacing: .03em;
}
.bar-tool:hover { background: rgba(200, 200, 200, .25); color: var(--accent); }
.bar-tool svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle { display: none; }
.js .theme-toggle { display: flex; }
.icon-sun { display: none; }

.side-menu {
  position: fixed;
  top: 0;
  left: var(--bar);
  z-index: 1;
  width: var(--panel);
  height: 100%;
  padding: 40px 25px 25px;
  overflow-y: auto;
  background-color: #fff;
  color: #000;
  box-shadow: 3px 0 12px 0 rgba(0, 0, 0, .07);
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.menu-open .side-menu { opacity: 1; visibility: visible; }

.main-nav { margin: 46px 0 1.5em; padding: 0; list-style: none; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: .6em 0;
  border-bottom: 1px solid rgba(180, 180, 180, .2);
  color: inherit;
  font-size: 1.8em;
  font-weight: 400;
  line-height: 1.5em;
  transition: color .2s ease-in-out;
}
.main-nav a:hover,
.main-nav .current a { color: var(--accent); }

.menu-extra { font-size: .92em; }
.menu-extra hr { height: 1px; margin: 2em 0; border: 0; background-color: #ececec; }
.menu-extra p { margin: 0 0 2em; }
.menu-extra p a { color: #707070; }

.social { margin: 0; padding: 0; list-style: none; line-height: 1em; }
.social li { margin: 0; }
.social a { display: flex; align-items: center; color: #707070; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: .25em;
  border-radius: 25%;
  background-color: #0e76a8;
  color: #fff;
}
.social a:hover .social-icon { background: rgba(200, 200, 200, .25); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* Layout
   -------------------------------------------------------------------------- */
#body { padding-left: var(--bar); }
.menu-open #body { padding-left: 0; }

.row { position: relative; display: flex; flex-wrap: wrap; }
.row-inner {
  position: relative;
  display: grid;
  width: 1160px;
  max-width: 90%;
  margin: 0 auto;
  grid-template-columns: var(--col, minmax(0, 1fr));
  grid-template-areas: var(--area);
  grid-auto-columns: 1fr;
  column-gap: var(--gap, 3.2%);
  align-content: var(--align, flex-start);
}
.row-inner.full { width: 100%; max-width: 100%; }
.col1 { grid-area: var(--a1, auto); position: relative; min-width: 0; }
.col2 { grid-area: var(--a2, auto); position: relative; min-width: 0; }
.col3 { grid-area: var(--a3, auto); position: relative; min-width: 0; }
.col4 { grid-area: var(--a4, auto); position: relative; min-width: 0; }

.module { position: relative; }

/* Scroll-effect wrapper (created by main.js) */
.lax-wrap {
  position: relative;
  transition: transform .8s cubic-bezier(.165, .84, .44, 1),
    filter .8s cubic-bezier(.165, .84, .44, 1),
    opacity .8s cubic-bezier(.165, .84, .44, 1);
}

/* Fade-in on reveal */
.js .wow { visibility: hidden; animation-fill-mode: both; }
.js .wow.is-visible {
  visibility: visible;
  animation-duration: 1s;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}
.js .wow.is-visible[data-animation="fadeIn"] { animation-name: fadeIn; }
.js .wow.is-visible[data-animation="fadeInUp"] { animation-name: fadeInUp; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Hero (orange triangle + giant word)
   -------------------------------------------------------------------------- */
.hero { min-height: 100vh; }
.hero::before {
  content: "";
  position: absolute;
  inset: -1px 0 0;
  background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%201500%20150%22%3E%3Cpath%20fill%3D%22rgba(227%2C%20146%2C%2099%2C%201)%22%20d%3D%22M1500%200H0v150L1500%200z%22%2F%3E%3C%2Fsvg%3E") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.hero .row-inner { width: 100%; max-width: 100%; min-height: 100vh; --align: center; }
.hero-grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 16.5346fr 1fr;
  column-gap: 3.2%;
}
.hero-grid > * { grid-column: 2; }
.hero-title h1 span,
.split-title h2 span { display: block; margin-bottom: .5em; }
.hero-title h1 {
  margin: 0;
  color: #0f0f0f;
  font-size: 11em;
  line-height: .5em;
  text-align: center;
}

/* Reusable big section heading ("CAPACI / DADES") */
.split-title h2 { margin: 0; font-size: 4.9em; line-height: .5em; text-align: center; }

/* Skills
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  padding-top: 3%;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 0;
}
.skills-grid .col1 { grid-column: 2; }
.skills-grid .col2 { grid-column: 3; }
.skill { padding-left: 15px; color: #6e6e6e; font-size: 1.5em; text-align: left; }
.skill h3 { color: #383838; font-size: 1.6em; font-weight: 400; }
.skill p { font-weight: 400; }
.mobile-only { display: none; }

/* Home – about block
   -------------------------------------------------------------------------- */
.about { min-height: 100vh; }
.about .row-inner { --col: 1.6846fr 1fr; --gap: 0; --align: center; width: 100%; max-width: 100%; min-height: 100vh; }
.about-photo {
  background: url("../img/IMG_2205.webp") 50% 50% / 100% no-repeat;
  min-height: inherit;
}
.about-copy { align-self: center; }
.about-copy h2 {
  line-height: 1.2em;
  letter-spacing: -.03em;
  color: #171717;
  font-size: 4.3em;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}
.about-copy .copy {
  padding: 0 40px;
  color: #242424;
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.5em;
  text-align: center;
}
.about-copy .copy p { margin-bottom: 0; }

.section-skills { padding-top: 10%; }

/* Home – product rows
   -------------------------------------------------------------------------- */
.product { padding-top: 12%; }
.product:has(+ .cta) { padding-bottom: 8%; }
.product .row-inner { --col: 1fr 2.4118fr; --gap: 0; }
.product.reverse .row-inner { --col: 2.4118fr 1fr; }
.product.reverse .col1 { z-index: 16; }
.product.reverse .col2 { z-index: 15; }

.word {
  position: relative;
  display: inline-block;
  color: #404040;
  font-weight: 800;
  font-size: 7.8em;
  margin-bottom: 120px;
}
.word-2 {
  z-index: 10;
  margin-bottom: 100px;
  padding-left: 50px;
  color: #fff;
  text-shadow: 2px 2px 2px #666;
}
.product.reverse .word-1 { margin-left: -60px; font-size: 6.8em; }
.product.reverse .word-2 { margin: -1px 0 100px -56px; padding-left: 22px; }

.product-link { padding-left: 70px; transition: transform .3s ease; }
.product-link a { color: #242424; font-style: italic; text-decoration: underline; }
.product.reverse .product-link a { color: #2e2e2e; }
.product-link:hover { transform: scale(1.05) translateX(15px); }
.product-link:hover a { color: var(--accent); font-weight: 700; }
.product.reverse .product-link:hover a { color: var(--accent); font-style: normal; }

.product-image { z-index: 5; }
.product-image a { display: block; }
.product-image img { margin-bottom: 2.5em; }
.product.reverse .product-image { transform: translateX(-15px); }
.product.reverse .product-image a { float: right; margin: 0 0 1em 1.5em; }
.product.reverse .product-image img { margin-bottom: 0; }

/* Call to action
   -------------------------------------------------------------------------- */
.cta { padding: 5% 0; }
.cta .row-inner { width: 100%; max-width: 100%; }
.cta-wrap { width: 1160px; max-width: 90%; margin: 0 auto; }
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #242424;
  font-weight: 600;
  text-transform: uppercase;
}
.status svg { width: 14px; height: 14px; margin-right: .4em; fill: #b1e89d; }
.status span { font-size: .8em; }
.cta h2 {
  line-height: 1.4em;
  margin-top: 40px;
  padding: 0 7%;
  color: #242424;
  font-size: 3em;
  letter-spacing: -2px;
  text-align: center;
}

.button-wrap { text-align: center; }
.button {
  position: relative;
  display: inline-block;
  padding: .8em 2em;
  background-color: var(--accent);
  box-shadow: 2px 6px 14px 0 rgba(66, 65, 33, .15);
  color: #fff;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 130%;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .25s, transform .25s;
}
.button:hover { background-color: var(--accent-light); color: #fff; transform: translateY(-3px); }
.button svg { width: 21px; height: 21px; margin-left: 8px; vertical-align: middle; fill: currentColor; }

/* Sobre mim
   -------------------------------------------------------------------------- */
.bio .row-inner { --align: center; }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.2%;
  align-content: center;
}
.bio-copy h2 {
  line-height: 1.2em;
  letter-spacing: -.03em;
  color: #171717;
  font-size: 4.3em;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}
.bio-copy .copy {
  color: #242424;
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.5em;
  text-align: center;
}
.bio-copy strong { font-weight: 700; }
.bio-image img { margin: .5em 0 1em; }

.section-exp { padding-top: 8%; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em 3.2%; }
.exp-card { padding: 50px; border-radius: 12px; background-color: #f0f0f0; }
.exp-card h3 { margin-bottom: .8em; font-size: 1.4em; }
.exp-item + .exp-item { margin-top: 1.6em; }
.exp-item p { margin: 0; line-height: 1.5; }
.exp-item strong { color: #363636; }
.section-about-skills { padding-top: 8%; }
.section-works { padding: 8% 0; }
.section-exp .split-title,
.section-about-skills .split-title,
.section-works .split-title { padding-bottom: 50px; }

.about-skill-title { color: #2b2b2b; font-size: 1.8em; text-align: left; }
.about-skill-title h3 { color: #383838; font-weight: 400; }
.about-skill-title.small h3 { font-size: 1.2em; }

/* Project pages
   -------------------------------------------------------------------------- */
.project-header h1 {
  margin: 0;
  padding: 40px 15px;
  color: #515151;
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  line-height: 1.2em;
  text-align: center;
  text-transform: uppercase;
}
.project-cover { width: 100%; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em 4em;
  padding: 2.5em 15px;
  color: #a8501f;
}
.project-meta strong { display: block; color: #404040; }

.project-video { display: block; width: 100%; height: auto; pointer-events: none; background: #d9d9d9; }

.project-intro { padding: 8% 0; }
.project-intro .row-inner { --col: 1fr 1fr; --gap: 0; --align: center; align-items: center; width: 100%; max-width: 100%; }
.project-bag img { max-width: 70%; margin: 0 auto; }
.mobile-block { display: none; }
.project-intro .about-copy h2 { font-size: 3.6em; }

.project-art { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.project-art img { width: 100%; }

.project-sections { display: grid; gap: 4em; width: 1160px; max-width: 90%; margin: 0 auto; padding-bottom: 8%; }
.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2%; align-items: center; }
.project-pair.flip > :first-child { order: 2; }
.project-pair h3 { margin: 0; text-align: center; }
.project-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.2%; }
.project-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2%; }
.project-center img { margin: 0 auto; }
.project-full img { width: 100%; }

/* Portfólio
   -------------------------------------------------------------------------- */
.portfolio-section { padding: 50px 3% 8%; }
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
  margin: 0 0 2.5em;
  padding: 0;
  list-style: none;
}
.portfolio-filter li { margin: 0; }
.portfolio-filter button {
  padding: .4em 1em;
  border: 0;
  background-color: #ebebeb;
  color: #363636;
  cursor: pointer;
  font: 400 .9em/1.5 "Open Sans", Arial, sans-serif;
  transition: background-color .2s, color .2s;
}
.portfolio-filter button:hover { background-color: var(--accent); color: #fff; }
.portfolio-filter button.active { background-color: var(--accent); color: #fff; font-weight: 700; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5em 3.2%; }
.portfolio-item[hidden] { display: none; }
.portfolio-item img { width: 100%; transition: transform .3s ease; }
.portfolio-item > a { display: block; overflow: hidden; }
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item h2,
.portfolio-item h3 { margin: .7em 0 0; font-size: 1.6em; font-weight: 400; letter-spacing: 0; line-height: 1.3em; text-align: center; }
.portfolio-item h2 a,
.portfolio-item h3 a { color: #3b3b3b; }
.portfolio-item h2 a:hover,
.portfolio-item h3 a:hover { color: var(--accent); }

.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2em 3.2%; }
.works-grid h3 { font-size: 1.1em; }
.works-more { margin-top: 2.5em; }

/* Contactos
   -------------------------------------------------------------------------- */
.contact { padding: 8% 0; }
.contact-intro { padding-bottom: 50px; }
.contact-intro h2 { color: #6b6b6b; font-size: 1.8em; font-weight: 300; letter-spacing: .015em; line-height: 1.4em; text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.2%; }
.contact-card { height: 287px; border-radius: 17px; background-color: #b3b3b3; }
.contact-photo { z-index: 10; padding: 25px 0 2.5em 25px; filter: saturate(0); }
.contact-photo img { margin: 10px 0 -65px; border: 4px solid #fff; border-radius: 50em; }
.contact-link {
  display: flex;
  align-items: center;
  padding: 39px 1em 1em;
  background-color: #f7f7f7;
  color: #555;
}
.contact-name { margin: 0 0 .3em; font-size: 1.2em; font-weight: 700; }
.contact-role { font-size: 1em; }
.contact-link svg { width: 2.2em; height: 2.2em; margin: .4em; margin-left: auto; fill: #0e76a8; }

.contact-email { align-self: center; margin: 0; font-size: 1.4em; text-align: center; }
.contact-email a { text-decoration: underline; }

/* Política de privacidade (default page layout)
   -------------------------------------------------------------------------- */
.page { width: 1160px; max-width: 90%; margin: 0 auto; padding: 3.8em 0; }
.page-copy { width: 71.03%; }
.page-title { margin: 0 0 1em; padding: 0; }

/* 404
   -------------------------------------------------------------------------- */
.error-page { padding: 5% 0; }
.error-page h1 { color: var(--accent); font-size: 8em; text-align: center; }
.error-image { margin-top: -60px; padding-bottom: 35px; }
.error-image img { margin: 0 auto; }
.error-copy { padding-bottom: 20px; color: #303030; font-size: 1.6vw; text-align: center; }

/* Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 15px 0 0 25px; background-color: #2b2b2b; color: #fff; font-size: .8em; line-height: 29.04px; }
.footer-grid {
  display: grid;
  width: 1160px;
  max-width: 90%;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3.2%;
  align-content: center;
  text-align: center;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }

/* Dark theme
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] { color-scheme: dark; --link: #3fd9b6; }
[data-theme="dark"] body { background-color: #141414; color: #b9c0cc; }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: #ececec; }

[data-theme="dark"] #headerwrap,
[data-theme="dark"] .side-menu { background-color: #1e1e1e; color: #e6e6e6; }
[data-theme="dark"] .side-menu { box-shadow: 3px 0 12px 0 rgba(0, 0, 0, .5); }
[data-theme="dark"] .menu-toggle,
[data-theme="dark"] .bar-tool { color: #e6e6e6; }
[data-theme="dark"] .menu-toggle:hover,
[data-theme="dark"] .bar-tool:hover { color: var(--accent); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .main-nav a { border-bottom-color: rgba(255, 255, 255, .1); color: #e6e6e6; }
[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav .current a { color: var(--accent); }
[data-theme="dark"] .menu-extra hr { background-color: #333; }
[data-theme="dark"] .menu-extra p a,
[data-theme="dark"] .social a { color: #b5b5b5; }

[data-theme="dark"] .hero-title h1 { color: #f5f5f5; }
[data-theme="dark"] .about-copy h2,
[data-theme="dark"] .bio-copy h2 { color: #f0f0f0; }
[data-theme="dark"] .about-copy .copy,
[data-theme="dark"] .bio-copy .copy { color: #d2d2d2; }
[data-theme="dark"] .skill { color: #9a9a9a; }
[data-theme="dark"] .skill h3,
[data-theme="dark"] .about-skill-title h3 { color: #dedede; }
[data-theme="dark"] .exp-card { background-color: #1f1f1f; }
[data-theme="dark"] .exp-item strong { color: #e4e4e4; }

[data-theme="dark"] .word { color: #e8e8e8; }
[data-theme="dark"] .word-2 { color: #fff; text-shadow: 2px 2px 2px #000; }
[data-theme="dark"] .product-link a,
[data-theme="dark"] .product.reverse .product-link a { color: #e0e0e0; }
[data-theme="dark"] .product-link:hover a,
[data-theme="dark"] .product.reverse .product-link:hover a { color: var(--accent); }

[data-theme="dark"] .status,
[data-theme="dark"] .cta h2 { color: #f0f0f0; }

[data-theme="dark"] .contact-intro h2 { color: #b5b5b5; }
[data-theme="dark"] .contact-card { background-color: #3a3a3a; }
[data-theme="dark"] .contact-link { background-color: #232323; color: #dedede; }
[data-theme="dark"] .contact-link svg { fill: #4aa3d0; }

[data-theme="dark"] .project-header h1 { color: #e4e4e4; }
[data-theme="dark"] .project-meta { color: var(--accent); }
[data-theme="dark"] .project-meta strong { color: #dedede; }
[data-theme="dark"] .project-video { background: #222; }
[data-theme="dark"] .project-bag img { filter: drop-shadow(0 0 28px rgba(255, 255, 255, .14)); }
/* Transparent logos are dark artwork, so they keep a light backing */
[data-theme="dark"] .project-pair img,
[data-theme="dark"] .project-four img,
[data-theme="dark"] .error-image img { background-color: #f5f5f5; }
[data-theme="dark"] .error-image img { border-radius: 12px; }

[data-theme="dark"] .portfolio-filter button { background-color: #2a2a2a; color: #dedede; }
[data-theme="dark"] .portfolio-filter button:hover,
[data-theme="dark"] .portfolio-filter button.active { background-color: var(--accent); color: #fff; }
[data-theme="dark"] .portfolio-item h2 a,
[data-theme="dark"] .portfolio-item h3 a { color: #dedede; }
[data-theme="dark"] .portfolio-item h2 a:hover,
[data-theme="dark"] .portfolio-item h3 a:hover { color: var(--accent); }

[data-theme="dark"] .error-copy { color: #dedede; }
[data-theme="dark"] .site-footer { background-color: #0c0c0c; }

/* Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1201px) {
  .row-inner, .cta-wrap, .footer-grid { max-width: 96%; }
}

@media (max-width: 1280px) {
  .product.reverse .row-inner { --col: 1fr 2.4118fr; --area: "col2 col1"; --a1: col1; --a2: col2; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .brand-name { font-size: 24px; }
  .side-menu { padding-top: 60px; }
  .side-menu, .main-nav a, .menu-extra p a, .social a { color: #383838; }
  .main-nav a { border: 0; }
  .main-nav a:hover, .main-nav .current a { color: var(--accent); }
  .menu-extra hr, .menu-extra p, .social {
    transition: transform .4s ease, opacity .4s ease;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: center;
  }
  .menu-open .menu-extra hr,
  .menu-open .menu-extra p,
  .menu-open .social { transform: scaleX(1); opacity: 1; transition-delay: .6s; }
}

@media (max-width: 768px) {
  .about .row-inner { --col: minmax(0, 1fr); --area: "col1" "col2"; --a1: col1; --a2: col2; }
  .about-copy h2 { font-size: 3em; }
  .split-title h2 { font-size: 3.5em; }
  .desktop-only { display: none; }
  .mobile-only { display: grid; }
  .bio-grid, .exp-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .project-pair { grid-template-columns: 1fr; gap: 1em; }
  .project-pair.flip > :first-child { order: 0; }
  .project-pair.flip > :last-child { order: -1; }
  .desktop-block { display: none; }
  .mobile-block { display: block; }
  .project-intro .row-inner { --col: minmax(0, 1fr); --area: "col1" "col2"; --a1: col1; --a2: col2; row-gap: 2em; }
  .project-intro .about-copy h2 { font-size: 3em; }
}

@media (max-width: 680px) {
  :root { --bar: 46px; }

  #headerwrap { left: calc(var(--bar) - 250px); width: 250px; }
  .bar-tools { top: 74px; gap: 2px; }
  .bar-tool { width: 34px; height: 34px; }
  .menu-toggle { top: 30px; left: 3px; width: 40px; height: 40px; padding: 12px 10px 8px; }
  .menu-open .menu-toggle { padding: 10px; }
  .menu-toggle-inner { width: 20px; height: 16px; }
  .menu-open .menu-toggle-inner { width: 20px; height: 20px; }
  .brand { bottom: -20px; }
  .side-menu { width: 274px; }

  h1, .page-title { font-size: 2em; }
  h2 { font-size: 1.6em; }
  h3 { font-size: 1.3em; }

  .hero { padding-top: 26%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > * { grid-column: 1; }
  .hero-title h1 { font-size: min(5.5em, 24vw); }
  .hero-home .hero-title h1 { font-size: 9em; }

  .about { align-content: center; }
  .about .row-inner { min-height: 0; }
  .about-photo { min-height: 0; padding: 100px 0; }
  .about-copy .copy { padding: 0 10px; }

  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid .col1, .skills-grid .col2 { grid-column: 1; }

  .product .row-inner,
  .product.reverse .row-inner { --col: 100%; --area: "col1" "col2"; --a1: col1; --a2: col2; }
  .product.reverse .row-inner { --area: "col2" "col1"; }
  .word { font-size: 3em; margin-bottom: 58px; }
  .word-2 { font-size: 4.5em; margin-bottom: 58px; }
  .product.reverse .word-1 { margin-left: 0; font-size: 3em; margin-bottom: 58px; }
  .product.reverse .word-2 { margin: -1px 0 58px -56px; padding-left: 100px; font-size: 4.5em; }

  .cta { margin-bottom: 15%; }
  .status span { font-size: .6em; }
  .cta h2 { margin-top: 20px; font-size: 1.5em; letter-spacing: -2px; }
  .button { font-size: .8em; }

  .section-exp, .section-about-skills { padding-top: 14%; }
  .section-works { padding: 14% 0; }
  .bio-copy .copy { padding: 0 6px; }
  .bio-grid { grid-template-columns: 100%; }
  .portfolio-section { padding-top: 90px; }
  .portfolio-grid { grid-template-columns: 100%; }
  .portfolio-filter button { font-size: .7em; }
  .project-four, .project-two { grid-template-columns: 1fr 1fr; }
  .project-two { grid-template-columns: 100%; gap: 1em; }
  .project-sections { gap: 2.5em; }
  .project-cover { display: none; }
  .project-art { grid-template-columns: 100%; }
  .project-meta { text-align: center; }
  .project-intro .about-copy h2 { font-size: 2.4em; }
  .exp-card { padding: 24px; }

  .contact { padding-top: 14%; }
  .contact-intro h2 { font-size: 1.3em; font-weight: 700; }
  .contact-grid { grid-template-columns: 100%; row-gap: 2.5em; }

  .page-copy { width: 100%; }

  .site-footer { padding: 30px 0 15px 30px; font-size: .6em; }
  .footer-grid { grid-template-columns: 100%; }
  .footer-grid .footer-gap { display: none; }
  .footer-grid p { margin-bottom: 0; }
}

/* Short screens: the vertical name would run into the buttons */
@media (max-height: 440px) {
  .brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .wow { visibility: visible; }
  .js .wow.is-visible { animation: none; }
  .lax-wrap { transition: none; }
}
