/* Main colors — edit here to change the palette. */
:root {
    --paper: #F5F1E9;
    --sand: #DED1BE;
    --ink: #35352E;
    --clay: #A15E49;
    --ice: #B7CBD5;
    --ice-light: #E5EDF0;
    --line: #CFC9BE;
    --white: #FFFEFA;
    --muted: #65675E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }

/* Header: no monogram/logo. */
.header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.header__inner { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 33px); }
.desktop-nav a { font-size: 12px; font-weight: 600; transition: color .2s; }
.desktop-nav a:hover, .footer a:hover { color: var(--clay); }
.header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.lang-switch { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; }
.lang-switch__button { color: #77786F; border: none; background: none; padding: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.lang-switch__button.is-active { color: var(--ink); }
.lang-switch__sep { color: #A5A9A3; font-size: 11px; }
.mobile-nav { display: none; }

/* Hero: deliberately compact, with a square replaceable image. */
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: center;
    gap: clamp(55px, 8vw, 120px);
    padding-block: 74px 79px;
}
.hero__content { min-width: 0; }
.hero__eyebrow { margin: 0 0 28px; color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero__name { margin: 0 0 13px; font-size: 18px; font-weight: 700; }
h1 { max-width: 660px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: normal; font-size: clamp(44px, 4.9vw, 65px); letter-spacing: -.055em; line-height: 1.08; }
.hero__description { max-width: 540px; margin: 23px 0 27px; color: #585A54; font-size: 15px; line-height: 1.7; }
.hero__links { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { display: inline-flex; gap: 27px; align-items: center; justify-content: space-between; padding: 15px 20px; font-size: 12px; font-weight: 700; transition: transform .2s, background-color .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: var(--white); }
.button--primary:hover { background: var(--clay); }
.text-link { display: inline-flex; gap: 10px; align-items: center; padding-block: 9px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.hero__visual { justify-self: end; width: 286px; aspect-ratio: 1; border-radius: 25px; overflow: hidden; background: var(--ice); box-shadow: 16px 16px 0 rgba(183, 203, 213, .22); }
.hero__image { width: 100%; height: 100%; object-fit: cover; }

/* Sections. */
.section { padding: 76px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.section__heading { display: flex; gap: 15px; align-items: baseline; margin-bottom: 34px; }
.section__number { color: var(--clay); font-size: 11px; letter-spacing: .08em; font-weight: 700; flex-shrink: 0; }
.section h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4.2vw, 54px); font-weight: normal; letter-spacing: -.05em; line-height: 1.08; }

/* About: one reading column; concise facts first, personal approach below. */
.about__grid { display: grid; grid-template-columns: minmax(0, 750px); gap: 24px; }
.about__facts { display: grid; border-top: 1px solid var(--line); }
.about__fact { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.about__fact > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E1E9E9; color: #536E76; font-size: 13px; font-weight: 700; }
.about__fact p { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.6; }
.about__copy { display: grid; gap: 13px; padding-left: 21px; border-left: 2px solid var(--ice); }
.about__copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* Services. */
.services { background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { min-width: 0; padding: 24px 20px 29px 0; border-right: 1px solid var(--line); }
.service:not(:first-child) { padding-left: 20px; }
.service:last-child { border-right: 0; }
.service__number { color: var(--clay); font-size: 11px; font-weight: 700; }
.service h3 { margin: 22px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: normal; letter-spacing: -.03em; }
.service p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.services__note { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 28px; margin-top: 30px; padding: 25px 30px; border-radius: 15px; background: var(--ice-light); }
.services__note h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: normal; letter-spacing: -.04em; }
.services__note p { margin: 0; font-size: 18px; line-height: 1.5; }

/* Pricing. */
.pricing__table-wrap { overflow-x: auto; }
.pricing__table { width: 100%; border-collapse: collapse; }
.pricing__table th { padding: 14px 14px; border-bottom: 2px solid var(--ink); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; text-align: left; }
.pricing__table td { padding: 19px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pricing__table th:first-child, .pricing__table td:first-child { padding-left: 0; }
.pricing__table th:last-child, .pricing__table td:last-child { text-align: right; white-space: nowrap; }
.pricing__table td:last-child { font-size: 16px; font-weight: 700; }
.pricing__note { margin: 25px 0 0; padding: 17px 19px; border-left: 3px solid var(--clay); background: #EFE8DF; color: #4F5149; font-size: 15px; line-height: 1.5; }

/* Skills: quiet group headings, readable rounded pill tags. */
.skills { background: var(--ice-light); }
.skills__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 60px; }
.skills__intro { max-width: 250px; margin: 0; color: var(--muted); line-height: 1.7; }
.skills__groups { display: grid; gap: 28px; padding-top: 4px; }
.skills__groups h3 { margin: 0 0 13px; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: #65777A; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 13px 20px; border: 1px solid #A9B6B8; border-radius: 999px; background: #F4F7F7; color: #404B4B; font-size: 17px; line-height: 1.25; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease; }
.tags span:hover { transform: translateY(-3px); background: #FFFDFC; box-shadow: 0 5px 13px rgba(49, 73, 82, .11); }

/* Projects: editable image slots for real screenshots. */
.projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project { min-width: 0; }
.project__visual { position: relative; overflow: hidden; height: 266px; border-radius: 16px; background: var(--ice); padding: 20px 20px 0; }
.project__visual--macaroons { background: #ECD8D5; }
.project__visual--macaroons .project__image { object-fit: contain; }
.project__visual--naroch { background: #D8E4E4; }
.project__image { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 12px 12px 0 0; box-shadow: 0 8px 26px rgba(30, 30, 30, .13); transition: transform .45s ease; }
.project:hover .project__image { transform: scale(1.035); }
.project__visual-label { position: absolute; bottom: 12px; left: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #5D5F58; font-size: 10px; }
.project__meta { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); color: #777970; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.project h3 { margin: 18px 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: normal; letter-spacing: -.04em; }
.project > p:not(.project__link-placeholder) { margin: 0; max-width: 470px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.project__link-placeholder { margin: 14px 0 0; color: var(--clay); font-size: 12px; }
.projects__documentation { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 48px; padding-top: 27px; border-top: 1px solid var(--line); }
.projects__documentation h3 { margin: 10px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: normal; }
.projects__documentation p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 16px; }
.projects__status { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 9px 13px; border: 1px solid #B6C5C6; border-radius: 999px; background: #EAF0F1; color: #496169; font-size: 12px; font-weight: 700; }
.projects__status-dot { flex-shrink: 0; display: block; width: 7px; height: 7px; border-radius: 50%; background: #729AA5; animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: .4; } }

/* Contact. */
.contact { background: var(--ink); color: var(--paper); }
.contact .section__number { color: #E4A38B; }
.contact__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9%; }
.contact__lead { max-width: 500px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.03em; line-height: 1.28; }
.contact__links { padding-top: 14px; }
.contact__links > a { display: flex; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.42); font-size: 18px; }
.contact__links > a span { color: #E4A38B; }
.contact__placeholder { margin-top: 17px; color: #C0C2B9; font-size: 13px; }
.footer { background: #292A24; color: #B9B8B1; padding: 22px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }

/* Animation starts only after JS marks a section as ready. */
.reveal-ready { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .container { width: min(1080px, calc(100% - 48px)); }
    .desktop-nav { gap: 17px; }
    .hero__grid { grid-template-columns: minmax(0, 1fr) 255px; gap: 35px; }
    .hero__visual { width: 255px; }
    h1 { font-size: clamp(43px, 5vw, 59px); }
    .skills__grid { grid-template-columns: 240px 1fr; gap: 40px; }
    .service h3 { font-size: 22px; }
}
@media (max-width: 780px) {
    .desktop-nav { display: none; }
    .header__inner { justify-content: flex-end; }
    .mobile-nav { display: block; position: relative; }
    .mobile-nav summary { padding: 10px 2px; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav nav { display: grid; position: absolute; top: 40px; right: 0; min-width: 175px; padding: 9px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 15px 25px rgba(0,0,0,.1); }
    .mobile-nav nav a { padding: 10px 0; font-size: 13px; }
    .hero__grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; padding-block: 58px; }
    .hero__visual { width: 200px; border-radius: 19px; }
    h1 { font-size: clamp(37px, 5.2vw, 48px); }
    .hero__eyebrow { margin-bottom: 18px; }
    .hero__description { font-size: 14px; }
    .section { padding: 63px 0; }
    .about__grid { gap: 24px; }
    .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service:nth-child(2) { border-right: 0; }
    .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .service:nth-child(3) { padding-left: 0; }
    .skills__grid { grid-template-columns: 1fr; gap: 25px; }
    .skills__groups { grid-template-columns: 1fr; }
    .skills__intro { max-width: 550px; }
    .project__visual { height: 220px; }
}
@media (max-width: 560px) {
    .container { width: calc(100% - 36px); }
    .header__inner { min-height: 61px; }
    .hero__grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 30px; padding-block: 40px 49px; }
    .hero__visual { align-self: flex-start; width: min(218px, 58%); border-radius: 19px; box-shadow: 10px 10px 0 rgba(183,203,213,.2); }
    .hero__content { width: 100%; }
    .hero__eyebrow { margin-bottom: 20px; }
    .hero__name { margin-bottom: 10px; font-size: 15px; }
    h1 { font-size: clamp(39px, 10.2vw, 54px); }
    .hero__description { margin: 21px 0 24px; font-size: 14px; }
    .hero__links { gap: 22px; }
    .section { padding: 52px 0; }
    .section__heading { margin-bottom: 25px; gap: 10px; }
    .section h2 { font-size: 41px; }
    .about__grid { gap: 22px; }
    .about__fact { gap: 12px; padding: 15px 0; }
    .about__fact p { font-size: 14px; }
    .about__copy { padding-left: 15px; gap: 12px; }
    .services__grid { grid-template-columns: 1fr; }
    .service, .service:not(:first-child) { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
    .service:last-child { border-bottom: 0; }
    .service h3 { margin: 10px 0 7px; }
    .services__note { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
    .services__note h3 { font-size: 25px; }
    .services__note p { font-size: 16px; }
    .pricing__table th, .pricing__table td { min-width: 95px; padding: 13px 10px; }
    .pricing__table th:first-child, .pricing__table td:first-child { min-width: 175px; }
    .pricing__table td { font-size: 12px; }
    .pricing__table td:last-child { font-size: 13px; }
    .pricing__note { font-size: 13px; padding: 14px; }
    .tags span { font-size: 15px; padding: 11px 16px; }
    .projects__grid, .projects__documentation, .contact__grid { grid-template-columns: 1fr; }
    .projects__grid { gap: 34px; }
    .project__visual { height: 214px; padding: 14px 14px 0; }
    .projects__documentation { gap: 15px; }
    .contact__grid { gap: 26px; }
    .contact__lead { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal-ready { opacity: 1; transform: none; }
}
